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? Example

I think there should be.
--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to