2010/11/29 Ángel González <keis...@gmail.com>:
> Richard Quadling wrote:
>> As for reading $seconds directly ...
>>
>> Well.
>>
>> If you think of the element that follows read as $this->xxxx, then if
>> the parser can handle both ...
>>
>> read $seconds
>> read getSeconds
>>
>> then yes for both.
>>
>> If not, then I'd guess that the getSeconds version should be the one
>> we use as the value may not actually exist without some processing.
>>
>> Richard.
>
> If it begins with $, it's a variable name, so map to that class member
> variable. If it is instead a plain T_STRING, take that as a member call.
>
> I'm not sure to be understanding the issue you're mentioning.
>
>

If the proposal incorporated support for getting the value from a
local-scoped variable (I assume the variable has to be part of the
current class or one of its parents?) as well as calling the getter,
then that really does seem to allow everyone everything they need.


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to