Namaspaces, caling functions and classes defined in the global name space



I've been reading the namespace specification for the 5.3 relaese, and I can't stop thinking that they have complicated the thing unecessary. Here is what I mean.

So far if you call a function or a class in (which is not global ) using this:

::A::foo();

it will first try to run the function foo() from the namespace A , and if it can't find it it will run the static method of the class A from th e global namespace.

I can't stop thinkign this is to complicated to read. Wouldn't be simple to just use the GLOBAL keyword for the global namespace, so this:
A::foo() will run the function foo from the A namespace, and this GLOBAL::A::foo() will run the static mehod foo of class A from the global namespace.
.



Relevant Pages

  • Re: Namaspaces, caling functions and classes defined in the global name space
    ... to just use the GLOBAL keyword for the global namespace, ... A::foowill run the function foo from the A namespace, ... It could be a function foo or a method of static class from the global namespace. ...
    (comp.lang.php)
  • Re: include headers: <X>, <X.h> and global namespaces
    ... > keep standard library definitions out of the global namespace. ... C++ standard says nothing at all about what it will or will not do. ... Each name declared as an object with external linkage in a header is ...
    (comp.lang.cpp)
  • Re: Bug in execfile?
    ... If you execfilea script names not known in the context of a function are ... looked up in the global namespace, but assignments set names in the local ... x and f are put into the local namespace, but x is not local to the function ... Now if you call execfilein the global namespace of the client script the ...
    (comp.lang.python)
  • Re: Lambda forms and scoping
    ... A function carries its own local namespace, its own closure, and its ... a global statement) the global namespace. ...
    (comp.lang.python)
  • Re: Frames as Rodney Dangerfield
    ... If you use frames you stop having "the global namespace" ... The term 'namespace' has no technical meaning in javascript (it does ...
    (comp.lang.javascript)