Re: Property Accessors 1.2 : parent::$foo Issue
| From: | Clint Priest | Date: | Fri, 04 Jan 2013 11:04:39 +0000 |
| Subject: | Re: Property Accessors 1.2 : parent::$foo Issue | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64516@lists.php.net to get a copy of this message | ||
Missed that bit... I think that would add two bits of inconsistency though.... (Without the $)
-Clint
On Jan 4, 2013, at 1:18 AM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> A recent suggestion from Stas is to use parent->$foo (note the use of ->
>> rather than ::)
>
> I actually proposed parent->foo. parent->$foo implies the name of the
> variable is "$foo", not "foo" - just as in $this->$foo. Yes, I know it
> does not match parent::$foo - but I can't do much about it. In any case,
> better not to add another inconsistency to the list of existing ones.
>
> --
> Stanislav Malyshev, Software Architect
> SugarCRM: http://www.sugarcrm.com/
> (408)454-6900 ext. 227