> Certainly many object's hash code in Java are based on their memory > address, which means that it can change over time. However, > java.lang.String's is computed as... [snip]
Ah yes, I actually did know that (honest!) but it had escaped me... :) > <cfdump var="#foobar.getPagePath()#"> Ooh, nice, I like that. :) So combining both the above, doing something like this would return a unique reference to a function: <cfset key = myFuncRef.getPagePath().hashcode()> Cool. The only (slight) disadvantage I see with this is if the body of the function changes then you'll still get the "old" cached version (at least until the cache times out), because the hash code doesn't change; using a straight myFuncRef.hashCode() call will guarantee that ant change in the CFM page holding the function will also change the function hash code and so will be "re-cached". Also, it's an additional method call over a straight myFuncRef.hashCode() call... Good points to think about, cheers Matt. Tim. ------------------------------------------------------- RAWNET LTD - Internet, New Media and ebusiness Gurus. Visit our new website at http://www.rawnet.com for more information about our company, or call us free anytime on 0800 294 24 24. ------------------------------------------------------- Tim Blair Web Application Engineer, Rawnet Limited Direct Phone : +44 (0) 1344 393 441 Switchboard : +44 (0) 1344 393 040 ------------------------------------------------------- This message may contain information which is legally privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any unauthorised disclosure, copying, distribution or use of this information is strictly prohibited. Such notification notwithstanding, any comments, opinions, information or conclusions expressed in this message are those of the originator, not of rawnet limited, unless otherwise explicitly and independently indicated by an authorised representative of rawnet limited. ------------------------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 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

