I have another observation about names.
Instead of using an arbitrary name, as the name of the function,
wouldn't it be possible to let the name be derived from the
function-body. Eg., if you took the function-body's tokens and created
a hash from them. This would have two implications: 1) Multiple
definitions of the same function would be optimised into one. And more
importantly 2) , it would be possible to serialize/unserialize a
closure. Of course, this won't work if an anonymous function is a
resource, since resources can't be serialized. This would work for
Wez' original patch though.

-- 
troels

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

Reply via email to