Re: reference

From: Date: Fri, 11 May 2001 15:30:03 +0000
Subject: Re: reference
References: 1 2 3  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1808@lists.php.net to get a copy of this message
On Fri, May 11, 2001 at 08:10:40AM -0500, Andrei Zmievski wrote : > On Fri, 11 May 2001, Roel Vanhout wrote: > > Without the reference, an instance of the object will be made, and a > > copy of this object will be assigned to $window. With the reference, > > only one instance will be made. So, the version with the reference is > > more memory efficient. > > Not just that, but if you do several assignments in a row, you will > experience problem with objects changing their type and all that. Just > use &new except for when assigning to global variables inside functions. Does this only apply to PHP-GTK or should this be a general rule when using instances in PHP ? - Markus

« previous php.gtk (#1808) next »