Actually, I don't need to do a deep copy. I can just use 'instance' instead
of the 'this' scope and then set this.instance = server.foo.instance.
That just makes 'instance' refer to the data in the cached object. If you change data via that reference, you will be changing the cached object data which is probably not what you want.
You probably want:
instance = duplicate(server.foo.instance);
or:
instance = structCopy(server.foo.instance);But, again, you're now copying a lot of data which may be as expensive as the initialization!
Then again, if you're *not* changing the instance data, why bother creating a new object instance in the first place?
You still haven't explained what you are really trying to do - from the amount of pain and complexity you're going through, I can almost guarantee that you're going about this the wrong way...
Sean A Corfield -- http://www.corfield.org/blog/
"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 word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
