Andi Gutmans wrote: > As I mentioned on the ZE2 mailing list there general rule of thumb is: > a) Objects should be passed by reference. > b) Everything else including arrays should be used by value whenever > possible semantically. > > In the ZE2 objects will join b).
Is there a proposed sytnax to stop copy by reference (Or did i miss it in the ZE2 docs) old stuff $object_copy = $object; //(copy) $object_copy = &$object; //(copy reference) new stuff? $object_copy = copy_object($object); //(copy????) $object_copy = $object; //(copy reference) regards alan > > Basically what this means, as long as you're not changing the data > passing it by value will take the full advantage of reference counting. > > Andi > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]