Re: Question about Namespace patch
| From: | Stanislav Malyshev | Date: | Mon, 23 Jul 2007 03:36:00 +0000 |
| Subject: | Re: Question about Namespace patch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-31163@lists.php.net to get a copy of this message | ||
1) Why is "import Foo" a no-op? Shouldn't it import everything define inside Foo?No, it shouldn't.
2) How can I import all classes from a namespace at once?Use namespace::class.
3) Shouldn't there be an error when importing a class which already existing in the current scope? ExampleI think there should be. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com