On Apr 1, 2005 11:26 AM, Bill Rawlinson <[EMAIL PROTECTED]> wrote: > Is there a way in CF to identify an objects type on the fly.
getMetadata(this).name > for instance, say I have a generic object that has some objects inheirited > from it. > In the generic object I would like to put a generic "copy" method that > would work sort of like this: In general, that doesn't actually work because an object's state isn't always set entirely from the constructor (only its initial state). For simple objects it would probably work tho'... > this probably isn't possible, but I figured I would ask. It would be much > cleaner to have this simple copy operation in the base class than having to > basically duplicate it in each inheirited class. It would rely on init() being defined in each inherited class tho' (since the base class constructor can't know about initializing all the right data in child classes). -- Sean A Corfield -- http://corfield.org/ Team Fusebox -- http://fusebox.org/ Got Gmail? -- I have 50, yes 50, invites to give away! "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
