Re: namespaces docs

From: Date: Fri, 14 Nov 2008 01:32:44 +0000
Subject: Re: namespaces docs
References: 1 2 3 4  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969379685@lists.php.net to get a copy of this message
Hi!
Shows that a namespace name with \ acts very differently from a namespace name without \ in imports, so I don't think it is entirely accurate to say that PHP namespaces don't support sub-namespacing.
I'm afraid I don't understand what do you mean by "sub-namespacing" besides the trivial fact that if you add foo, \ and bar you get foo\bar. Could you please explain?
actually, "use \Long\Classname;" is a parse error - did we intend to allow it?
I thought it was allowed, to be compatible with use \Classname. Wouldn't hurt to do it, I think. Thanks! -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.doc (#969379685) next »