Re: Scope and namespace
| From: | Zeev Suraski | Date: | Thu, 13 Mar 2003 12:34:49 +0000 |
| Subject: | Re: Scope and namespace | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-95156@lists.php.net to get a copy of this message | ||
At 23:48 12/03/2003, Andrei Zmievski wrote:
Seeing as how we now have only one-level deep namespaces and classes (which is another topic), does it make sense to have both 'scope' and 'ns' fields in zend_op_array structure? I would think they can be merged into one.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. Zeev