What about just having a function that allows retrieving variables from
the parent scope?

    mixed seek_var( $name [, $levels=1, [ $startLevel=0 ] ] )

How you are going to know where "parent scope" is? It can even be not existing anymore, or can be separated by any number of parameter passing. Remember that the function is defined at compile-time, but invoked at run-time by some other function.

--
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED]  http://www.zend.com/

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

Reply via email to