Hi Marc:

On 09 Feb 2012, at 22:36, Marc Easen wrote:

> The reason why I feel this should be changes to reflect the actual called 
> function name is that one of main uses of the __FUNCTION__ constant it to 
> refer back to the function that is currently running, for the use recursive 
> functions:

I still maintain the position that __FUNCTION__, as __LINE__ and __FILE__, is 
supposed to be a lexical constant. (In retro-spective, adapting __CLASS__ to do 
even more magic might have been a mistake, from a conceptual point of view.)

So far, I was refraining from proposing any additions to the RFC before 5.4 is 
finally out and we see how it is used in the wild.
But since recursive function calls are indeed a problem, we should look for a 
better solution.

I think, `self` is already a keyword anyway, perhaps we can use that for 
self-referential/recursive function calls in traits? 

Best regards
Stefan


-- 
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax:   +32 2 629 3525


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

Reply via email to