No, of course not. But you can do it on your server(s), and any third-party CFCs you install will magically have it. It's certainly not perfect, but since CF's base component doesn't have any of those handy utility things that java.lang.Object (and other langauges base classes) have, you gotta fake it one way or another.
But rather than getUUID(), i'd recommend an isEquals method. Then you can override it as needed in subclasses, and the implementation doesn't matter (i.e. my server uses a UUID, your server uses System.identityHashCode), but we can both rely on the existance of isEquals. cheers, barneyb On 10/18/05, Mark Mandel <[EMAIL PROTECTED]> wrote: > Barney - > > Are you trying to suggest I change every /web-inf/cftags/component.cfc > file in the world to have this proprietry getUUID() method? > > I mean, I'm strong in the Force and all, but even that is a big try ;o) > > Mark > > On 19/10/05, Barney Boisvert <[EMAIL PROTECTED]> wrote: > > The UUID mechanism works well, as long as the implicit superclass is > > where the method is defined, rather than in some explicit superclass. > > That'd be Java's java.lang.Object, and CF's web-inf.cftags.component. > > Just throw your method in there, and every CFC on your server will > > magically have the method. > > > > cheers, > > barneyb > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites.
