From: clayton c. <cc...@ca...> - 2001-04-12 19:35:24
|
> If I remember well, that is exactly as OO languages like C++ work are > designed to work, hence the need in C++, for instance, for a "Copy > Constructor". If you need a reference, you just don't use $myObj = $thatObj > because that, by -definition-, will create a copy of the original object, > and not a reference.... :) IIANM, later versions of PHP (post 4.04pl1) have the following syntax $myObject =& $thatObject; $newObject =& new Widget; to deal with this issue |