> On Saturday, Mar 29, 2003, at 18:35 US/Pacific, S. Isaac
> Dealey wrote:
>> structkeyexists() is also better than isdefined() imho
>> since it's more
>> specific although I wasn't entirely sure it would produce
>> the desired
>> result
> structKeyExists() will likely be faster (and it's safer -
> but it's complicated to explain why :)
I'm not surprised, but it's complicated to explain why. ;P Actually it just
"feels" like that should be the case to me... It's like using
document.getElementById() in javascript vs. using eval("myobjectid") -- in
many browsers the latter works and in some older browsers that don't support
the DOM standard getElementById function you have to resort to that, but
it's faster/better/safer to use the DOM function for any recent target
browser that supports DOM.
>> I wonder if <cfreturn this["get_" & propertyname]()>
>> would produce an
>> error... It sure looks funky...
> It does error out which is why I used a temporary local
> variable (fn).
Yea, that's what I suspected, thanks for the confirmation. :)
s. isaac dealey 954-776-0046
new epoch http://www.turnkey.to
lead architect, tapestry cms http://products.turnkey.to
tapestry api is opensource http://www.turnkey.to/tapi
certified advanced coldfusion 5 developer
http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4