David Grudl wrote:
> I hope it is only very bad joke :-(
>
>
> namespace myNamespace;
>
> class theLoader
> {
>function load($class) { ... }
> }
>
>
> // somewhere else
> spl_autoload_register(array("myNamespace\theLoader", "load"));
> -> registers myNamespaceheLoader::load()
Fortunately,
I hope it is only very bad joke :-(
namespace myNamespace;
class theLoader
{
function load($class) { ... }
}
// somewhere else
spl_autoload_register(array("myNamespace\theLoader", "load"));
-> registers myNamespaceheLoader::load()
David Grudl
Původní zpráva
Předmět:
Hi all,
Thx to the initiative of Scott and Steph we had an IRC discussion with
several code developers. The result is that we have decided to go with
backslash as new separator for namespaces. The IRC log that
illustrates why we in the end decided to go with changing the
separator and the