Re: [patch] Late static bindings (LSB)

From: Date: Fri, 21 Sep 2007 02:43:46 +0000
Subject: Re: [patch] Late static bindings (LSB)
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-32409@lists.php.net to get a copy of this message
From technical point of view it is possible to propagate LSB with self::, parent::, and static:: and not with CLASS::. I think it may be a good compromise.
I am very much in favor of this. I think it allows the greatest amount of control. If you need a specific class's static method called then passing that class' name is the best idea. i would question wether it is a good idea to make self:: work like that though.
Thanks. Dmitry.
-----Original Message----- From: Stefan Walk [mailto:et@php.net] Sent: Thursday, September 20, 2007 1:10 PM To: Dmitry Stogov; internals@lists.php.net Subject: Re: [PHP-DEV] [patch] Late static bindings (LSB) Is it possible or feasible to distinguish betwenn parent:: and NameOfParentClass::? That would allow to push a call "up" while preserving the called name while not making Class:: mean different things depending on the location of the call, which is a very bad thing IMO (it's an effect that may not be desired). Regards, Stefan
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.487 / Virus Database: 269.13.21/1010 - Release Date: 9/15/2007 7:54 PM


« previous php.internals (#32409) next »