OK, to be complete:  If you use StructCopy on a structure of structures, you 
won't get a copies of the sub-structures, but rather pointers to the sub-
structures of the original structure.

Since the intent of StructCopy was to provide a separate, non-pointer copy of a 
structure (as opposed to the pointers created by <cfset newStruct = myStruct>), 
I maintain that StructCopy won't actually COPY a structure of structures.  
Duplicate, on the other hand, creates a separate, legit copy of the original 
structure, including substructures, sans pointers.

What do you want folks to do, Fred, read the documentation> ;>

- Jeff

On 5 Nov 00, at 0:14, Fred T. Sanders wrote:

> That's almost correct!
> 
> ----- Original Message -----
> From: "Jeff Peters" <[EMAIL PROTECTED]>
> To: "Fusebox" <[EMAIL PROTECTED]>
> Sent: Saturday, November 04, 2000 10:02 PM
> Subject: RE: OT but URGENT: duplicate function...
> 
> 
> > On 3 Nov 00, at 11:21, Jack Holt wrote:
> >
> > > Did I miss a message that generated this question? What duplicate
> function?
> >
> > The new Duplicate() function is similar to the older StructCopy()
> function,
> > with one big difference:  Where StructCopy() won't copy a structure of
> > structures, Duplicate() will.
> >
> > - 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.
> >
> 
> ------------------------------------------------------------------------------
> 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.


==============================================================
| 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