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

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация