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:[EMAIL PROTECTED] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php