Re: autoload with namespace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 02 April 2008, Jochem Maas wrote:

> > there is one curiosity / caveat underlying the 5.3 implementation...  so
> > does the namespace get supplied to the autoload function as well as the
> > class name?  is it just one big string or are they separate?
>
> one big string. how does php know before hand whether foo::get() is a
> namespaced function call or a static class method call?

I believe the decision from -internals was "seriously, who uses static methods 
and functions in the same code base that would use namespaces?"  Of course, I 
would hope to be able to say "me!" once I am able to upgrade my work to 5.3, 
but the debate over the separator character is one of those guaranteed to 
start a flame war so I've just resigned myself to probably not being able to 
use namespaces in most places.

-- 
Larry Garfield			AIM: LOLG42
larry@xxxxxxxxxxxxxxxx		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux