Re: [PHP-DEV] Autoloading namespace constants and functions

2007-10-24 Thread Stanislav Malyshev
A few different proposals have mentioned the possibility that import or use statements might trigger autoload. I don't think it's a good idea. Import is a compile-time name transformation, it doesn't even have to be a name of any real class or namespace. The missing piece would be allowing a

[PHP-DEV] Autoloading namespace constants and functions

2007-10-24 Thread Chuck Hagenbuch
A few different proposals have mentioned the possibility that import or use statements might trigger autoload. My initial reaction is that this would be bad, BUT: it could let us use autoload to handle namespaced function libraries and namespace constants also - as long as they were importe