It should be noted - if the Array contains simple values, then you do
NOT need to use Duplicate. A simple a=b will be fine.
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Chris Norloff [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 8:26 AM
> To: CF-Talk
> Subject: RE: Duplicate and StructCopy
>
>
> Duplicate() is used with CFSET to copy a complex variable
> (query, array or structure). If you don't use Duplicate()
> then the copy is not a real copy, but a pointer back to the
> original - this can cause problems with shared-scope
> variables (application, session, server).
>
> Duplicate() is unnecessary with simple variables.
>
> Chris Norloff
>
> ---------- Original Message ----------------------------------
> from: "Mark Stewart" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> date: Mon, 10 Sep 2001 17:45:19 -0400
>
> >Someone correct me if I'm wrong but I believe the best way
> to "copy" is
> >to use the duplicate function. I believe the difference is there's
> >sometimes a problem when you have nested structures and those nested
> >structures don't get copied or may be corrupted when you use
> >structcopy(). I'm not sure if that sounds right, but I'll let it fly
> >anyway.
> >
> >BTW - are you the same Brian Yager that used to work for, um, that
> >bomb, um dfi? :-)
> >
> >Mark
> >
> >-----Original Message-----
> >From: Yager, Brian T Contractor/NCCIM
> >[mailto:[EMAIL PROTECTED]]
> >Sent: Monday, September 10, 2001 5:09 PM
> >To: CF-Talk
> >Subject: Duplicate and StructCopy
> >
> >
> >Are these two the same? If not, what is the difference between them?
> >
> >
> >
> >Brian Yager
> >President - North AL Cold Fusion Users Group
> >Sr. Systems Analyst
> >NCCIM/CIC
> >[EMAIL PROTECTED]
> >(256) 842-8342
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists