Re: Updated PHP 5 ToDo

From: Date: Sun, 20 Jul 2003 18:30:19 +0000
Subject: Re: Updated PHP 5 ToDo
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-3528@lists.php.net to get a copy of this message
Hello Andi, Sunday, July 20, 2003, 9:29:56 PM, you wrote: AG> 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. AG> But you don't have $this in a static function... self refers to the class AG> and thus new self() makes more sense. The problem was with derived classes and inherited (static) factory methods. There you needed 'this' (*whithout $*) instead of 'self'. -- Best regards, Marcus mailto:helly@php.net

« previous php.internals (#3528) next »