|
Posted by taps128 on 11/30/07 07:30
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.
Navigation:
[Reply to this message]
|