Re: Updated PHP 5 ToDo

From: Date: Sun, 20 Jul 2003 19:29:56 +0000
Subject: Re: Updated PHP 5 ToDo
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-3526@lists.php.net to get a copy of this message
At 08:20 PM 20/7/2003 +0200, Marcus Börger wrote:
Hello Zeev, Sunday, July 20, 2003, 8:09:31 PM, you wrote:
- Add support for 'this::<method>()', 'this::<property>'
ZS> ? ZS> That's what you have self:: for.
and 'new this()' inside static methods.
ZS> I see no compelling reason to add 'new this()', but either way, if we do ZS> find such a reason, it will be 'new self()'. Timm already ran into the problem also self and this are of course different things and their meaning should not be changed that would be to much confusion.
But you don't have $this in a static function... self refers to the class and thus new self() makes more sense. Andi

« previous php.internals (#3526) next »