Hi!

> How about an alternative approach where a function inside a namespace
> can be autoloaded using the existing callback, by using a reserved
> namespace segment? So to autoload function "foo\bar()", the engine would
> construct a string like "__function\foo\bar" or "foo\__function\bar",
> and pass that to the registered autoloader stack.

Magic out-of-domain values usually are bad design, and lead to a lot of
trouble since now the system needs to deal with two sets of assumptions
instead of one. I wouldn't recommend doing it.
-- 
Stas Malyshev
smalys...@gmail.com

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

Reply via email to