>> It'd be nice to have some say over when a reference is made, and when
a
copy is made.  

wrong language/platform

you want VB's ByRef, ByVal by the sounds of it...


just my 2c (+ GST + Ansett levy + Sugar levy + Medicare surcharge)
barry.b

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam
Cameron
Sent: Tuesday, 5 October 2004 1:52 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: copy

> To my knowledge, assigning a complex variable to another variable
creates
> a reference.

Except arrays (for some reason... "lack of attention to the job at hand
on
the part of MM", I wager ;-).

It'd be nice to have some say over when a reference is made, and when a
copy is made.  Maybe:

x = duplicate(y)        // clone() might be better?
and
x = reference(y)

And have them both work correctly for all types of object that might
crop
up. 

> Duplicate() creates a new copy of the variable (structure, etc).

WARNING...

Embedded objects will be converted to STRUCTS when using duplicate().

Adam

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to