Re: Use of 'self' in static function in subclass

From: Date: Tue, 01 Jun 2004 19:47:49 +0000
Subject: Re: Use of 'self' in static function in subclass
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10231@lists.php.net to get a copy of this message
On 1 Jun 2004 at 21:13, Timm Friebe wrote: > Yes: self is bound at compiletime. It would need to be changed to > evaluation at runtime und would be far more useful then. > > [...] > > I wouldn't mind chaning self in the first place, though. I prefer your solution to evaluate self at runtime instead of adding a new keyword 'this'. The second one would only be confused with $this. Many people (including me) are already familiar with 'self' and expect it to refer to the class from within it is called. -- Ferdinand Beyer <fb@fbeyer.com>

« previous php.internals (#10231) next »