Re: [PATCH] allowing multiple namespaces per file plus namespaces with brackets

From: Date: Tue, 21 Aug 2007 23:48:45 +0000
Subject: Re: [PATCH] allowing multiple namespaces per file plus namespaces with brackets
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-31820@lists.php.net to get a copy of this message
Right, that's why I was saying expansion of imports would be necessary, meaning that all references to "bar" would need to be translated to "otherfoo::bar"
Thatnslated by whom? How? I'm not sure I understand.
CG(current_import) = CG(saved_import) and freeing CG(saved_import). This would of course mean that top-level import is not the same as import within a namespace, would that make sense?
Not really, but that's the only way to make it work with any kind of consistency. That's why I'm saying this thing is more complex that it appears at the first glance. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#31820) next »