Re: Scope and namespace

From: Date: Thu, 13 Mar 2003 13:54:48 +0000
Subject: Re: Scope and namespace
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-95158@lists.php.net to get a copy of this message
On Thu, 13 Mar 2003, Zeev Suraski wrote: > Not really, we can't. You can have functions inside a namespace, that > don't have a class entry attached to them. > I guess we could create some hybrid of the namespace and ce, but it would > end up being ugly, with many more extra checks. Suppose we left only one field, scope. For those functions not attached to a class, we'd have scope->type = ZEND_NAMESPACE, and for methods we'd have scope->type = ZEND_USER_CLASS or something. Unless, you mean that you want to keep track of both theh namespace and the class for methods. -Andrei http://www.gravitonic.com/ "Everything should be made as simple as possible, but not simpler." -- Albert Einstein

« previous php.dev (#95158) next »