The variable is just a reference to the object. The object may not
have a variable pointing to it.
<cfset createObject("component","ephemeralObject").doSomething()/>
Or it may have several variables pointing to it.
<cfset myObject = createObject("component","testObject")/>
<cfset yourObject = myObject/>
<cfset theirObject = myObject/>
It may be part of an array.
<cfset arrayAppend(ourObjects,createObject("testObject"))/>
It may even refer to itself.
<cfcomponent name="SelfEmployedWorker" extends="Worker">
<cfset this.employer = this>
...
</cfcomponent>
There probably is a way to find all or at most of the variables that
reference an object, but I'm not sure that's such a great idea,
especially if you're looking for a single name.
--
Patrick McElhaney
704.560.9117
You are subscribed to cfcdev. To unsubscribe, please follow the instructions at
http://www.cfczone.org/listserv.cfm
CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]