Re: [PHP-DEV] Scope and namespace

2003-03-13 Thread Zeev Suraski
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

Re: [PHP-DEV] Scope and namespace

2003-03-13 Thread Andrei Zmievski
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

Re: [PHP-DEV] Scope and namespace

2003-03-13 Thread Zeev Suraski
At 15:54 13/03/2003, Andrei Zmievski wrote: 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,

[PHP-DEV] Scope and namespace

2003-03-12 Thread Andrei Zmievski
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. I still want to hear from Zeev about lack of nested classes/namespaces..