RE: [PHP-DEV] Use of 'self' in static function in subclass
| From: | Stephan Schmidt | Date: | Tue, 01 Jun 2004 13:21:48 +0000 |
| Subject: | RE: [PHP-DEV] Use of 'self' in static function in subclass | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10201@lists.php.net to get a copy of this message | ||
Hi,
> Somehow this behaviour seems logical, on the other hand I don't think
> it's desired. I think that 'self' should point to the current class,
> even if the static method resides in a parent class.
>
> Is this 'self'-behaviour intended?
Furthermore this renders the template-method pattern quite useless, so
IMHO it should be changed.
Stephan