Re: autoload with namespace

From: Date: Thu, 03 Apr 2008 01:11:46 +0000
Subject: Re: autoload with namespace
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-272470@lists.php.net to get a copy of this message
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@garfieldtech.com 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

« previous php.general (#272470) next »