On 5 Nov 00, at 14:56, Cameron Childress wrote:

> I am not sure what to make of this.  Either StructCopy() and Duplicate()
> BOTH make a complete copy of all substruct info, or CF doesn't correctly
> enforce strict usage of CFLOCK like is should be.  Or maybe I'm
> misinterpreting something....
> 
> Comments?

Your test code is similar to what I used to figure out Duplicate(), except for 
one thing:  you don't alter the original structure before testing your output. 
Naturally, you get working output for everything, because the pointers created 
by StructCopy still point to the original structure.  You can test this by 
changing a value in tmpStruct AFTER you've created tmpPointer or tmpStructCopy; 
they'll both reflect the change, whereas tmpDuplicate won't.

Also try this:  at the end of your cfscript block, use StructClear to remove 
the contents from your tmpStruct.  Once you do that, you'll see that the 
pointer-based structures (tmpPointer and tmpStructCopy) will throw errors.

- Jeff

==============================================================
| Jeffrey S. Peters       | "Specialization is for insects." |
| [EMAIL PROTECTED] |                 - Lazarus Long   |
==============================================================
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to