Jon Clausen wrote:
Not sure I follow you. From CFQuickDocs:
structCopy:
Copies a structure. Copies top-level keys, values, and arrays in the
structure by value; copies nested structures by reference.
Looks like the structCopy() is doing what it's supposed to do to me
since the url.test isn't nested and is a simple value.
Well, as it turns out, Sean Corfield documented this on his blog in
2004. But, I find it strange exactly for the same reason you
mentioned: "Copies top-level keys, values, and arrays in the structure
*by value*;" ... So, if I copy by value then delete a key in the copy of
the struct, it should not delete the key in the original, yet it does.
Using Duplicate does the same thing, at least in 6.1.
Jon
On Oct 26, 2006, at 6:48 PM, Sammy Larbi wrote:
So, do you find it odd? I thought structcopy was supposed to
(shallow) copy by value.
Jon Clausen wrote:
On Oct 26, 2006, at 6:26 PM, Sammy Larbi wrote:
I'm using CF MX6.1. Can anyone with 7 let me know what the output is?
NO
... that's the output, I mean. :-)
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]
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]