Re: Static vars in methods

From: Date: Fri, 09 Mar 2001 17:21:06 +0000
Subject: Re: Static vars in methods
References: 1 2 3 4 5 6  Groups: php.dev 
Request: Send a blank email to php-dev+get-48424@lists.php.net to get a copy of this message
By the way, if you need something that works you can just add the following line in your constructor: $this->mystatic =& $GLOBALS["__myclass_mystatic"]; Then use $this->mystatic in all of your methods. It's not built-in but it should work pretty nicely. Andi At 11:02 AM 3/9/2001 -0600, Andrei Zmievski wrote:
On Fri, 09 Mar 2001, Andi Gutmans wrote: We need to think of static class variables. I don't think it's very easy to do this in a way which wouldn't cause a general performance loss but I'll put on my thinking cap. Ok, I was gonna try to hack it in myself, but you are obviously more qualified to do it. -Andrei "Claiming Java is easier than C++ is like saying that K2 is shorter than Everest." -- Larry O'Brien (editor, Software Development)


« previous php.dev (#48424) next »