Re: Updated PHP 5 ToDo

From: Date: Sun, 20 Jul 2003 20:05:27 +0000
Subject: Re: Updated PHP 5 ToDo
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-3533@lists.php.net to get a copy of this message
At 21:20 20/07/2003, 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.
Right, and self() is the right choice here (you're referring to the class, not to a particular instance). But that's *if* we decide that we need that kind of syntax in the first place, I'm for one am not convinced... Zeev

« previous php.internals (#3533) next »