Re: Re: namespaces?

From: Date: Sun, 15 Jul 2001 17:59:22 +0000
Subject: Re: Re: namespaces?
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-801@lists.php.net to get a copy of this message
cox@idecnet.com (Tomas V.V.Cox) wrote in news:3B51878D.3AA9BF69@idecnet.com: > Just some strange thoughs: > > - Automatic includes. For example, if I do: $foo = new Bar, it could > search in the registered classes stack, find the file and do > "require_once" of it automaticly. How do you expect to build this 'registered classes stack'? This idea really doesn't sit with me well, as it requires various forms of 'registration' by .php classes. And what if two packages offer a class by the same name? Which one gets automatically included? > - The ability to call a parent method without loosing the object, so > instead of parent::method() do for ex: parent->method(). What object are you losing? Parent *is* $this. There's no $parent or anything like that. Parent simply refers to the implementation of the method in the base class, not the "most derived" implementation. - Oleg

« previous php.pear.dev (#801) next »