Assume for some reason you have an entity in a namespace which has the
same name as something in the global namespace.

Within the namespace, you wouldn't need to use the namespace prefix
(maybe it has been aliased, subclassed or some other reference).

How would you access the global namespaced entity?

For variables, object instances, references, etc., you can use
$GLOBALS[], but if the namespace is going to look like ...

namespace_a::class_b->method_c();

Should there be an alias for global?

global::class_b->method_c();

Or have I missed something?

-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

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

Reply via email to