The Struct returned from GetMetaData has a member named "name" which contains 
the full CFCpath of the CFC used to instantiate the object.

Terrence Ryan
Senior Systems Programmer
Wharton Computing and Information Technology       
E-mail:         [EMAIL PROTECTED]

-----Original Message-----
From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 06, 2007 11:14 PM
To: CF-Talk
Subject: Re: CFC Typeof()

regardless of whether or not CF is duck typed or dynamic, the dynamic
languages I've used   have all had this ability.  Say you have an cfc
that expects a vehicle, you send it a bike and you send it a car, both
are vehicles, but both behave differently in some aspects.  They may
both have a 'go', but only the car will have 'checkFuelLevel'.  Which
would be the bigger performance hit, using a try catch block or just
checking the type or class of an object?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280322
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to