Re: reference caller object
| From: | Richard Quadling | Date: | Fri, 18 Sep 2009 09:42:40 +0000 |
| Subject: | Re: reference caller object | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-45598@lists.php.net to get a copy of this message | ||
2009/9/17 Sebastian Bergmann <sb@sebastian-bergmann.de>:
> Chris Trahey schrieb:
>> using it is current-implimentation specific (i.e. developer needs to
>> know the format of the array returned)
>
> And adding another language feature is not something the developer needs
> to know?
>
> --
> Sebastian Bergmann Co-Founder and Principal Consultant
> http://sebastian-bergmann.de/
> http://thePHP.cc/
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Considering we have func_get_args(), maybe func_get_caller() would be
a nice fit.
I don't like the idea of a constant (CALLER) which changes value as
you move around the code. Quite obviously, it isn't constant!
The function func_get_caller() could be easily implemented in userland
until a core-level solution was reached (or not).
Regards,
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling