Because Cold Fusion is not a fully object-oriented language. Components
do not have "constructors" and there is no method "overloading". To be
able to pass "objects" by value you need both of these.
That's not true. Java is a 'by reference' language so you need to code your own 'clone()' method to create deep copies. C++ allows both 'by value' and 'by reference' and you can code 'copy constructors' to allow deep (or shallow) copying. By default, a C++ compiler-generated copy constructor does a *shallow* copy.
ColdFusion is a 'by reference' language so you need to explicitly code your own 'clone()' method, just like you do in Java.
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive." -- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]
