They do and they don't ;-)
The Advanced CF course teaches the bits about structures and pointers with
reference to StructCopy(). However Duplicate() is much more generic than
StructCopy() i.e. can copy more than just structs, and (IIRC) performs a
deep copy.
Steve
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2000 11:11
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
But why doesn't allaire use StructCopy ... ;)
-----Original Message-----
From: Steve Martin [mailto:[EMAIL PROTECTED]]
Sent: donderdag 21 december 2000 11:43
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
Not entirely true. Structcopy does actually duplicate the structure in
question. I think there's some confusion here over <cfset
somenewvar=anoldstruct> which creates a pointer to the original. Structcopy
however only performs a shallow copy in that any embedded structures within
the structure that you are trying to duplicate aren't copied wholesale but
are referenced through pointers.
Steve
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: 21 December 2000 10:11
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
Using StrucyCopy you still reference the original structure. So, when using
structCopy of an application or session variable you still have a pointer to
the shared memory
-----Original Message-----
From: Allan Pichler [mailto:[EMAIL PROTECTED]]
Sent: donderdag 21 december 2000 10:55
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
StructCopy(structure)
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 1:54 AM
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
How do you duplicate a structure in CF4.0?
-----Original Message-----
From: Allan Pichler [mailto:[EMAIL PROTECTED]]
Sent: donderdag 21 december 2000 10:40
To: CF-Talk
Subject: RE: Duplicate supported in CF4.0
No it's not!
Allan Pichler
Machine Dreams Inc.
-----Original Message-----
From: Johan Coens [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 21, 2000 1:47 AM
To: CF-Talk
Subject: Duplicate supported in CF4.0
Quick question
is the Duplicate function supported in CF4.0?
Best regards,
Johan Coens
=========
Ing. Johan Coens
Certified ColdFusion Developer
<theFactor.e>
Friesestraatweg 215a
P.o. Box 2010 9704 CA Groningen
The Netherlands
Tel: +31 (0)50 57 57 888
Fax: +31 (0)50 57 57 889
<http://www.thefactore.com>
Premium Partner for Allaire Cold Fusion
Multimedia development with Macromedia Director, Authorware, Flash.
"Imagination is more important than knowledge. Knowledge is limited.
Imagination encircles the world."
Albert Einstein
=========
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists