Hi!
This doesn't work at all
The closest you can do is
<?php
use Foo::Bar as F;
F::myfunction;
?>
That's the right way to go. If you want functions in global space, put
them there. If not, then use namespace syntax. BTW, what is so bad in
F::myfunction that it makes it absolutely useless?
which kind of defeats the purpose of having functions in namespaces at
all, why not just use a class with static methods at this point.
I didn't see a lot of use of having functions in namespaces from the
start, but if you could explain what your point is - i.e. why do you
want functions that are declared in namespaces and still are in the
global space - I could maybe understand the concern better.
--
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