Re: [PHP-DEV] Set default namespace

2008-01-10 Thread Tomi Kaistila
Yes, I know. My suggestion/inquiry was about changing this behavior. So instead of "use ProjectA;" being equivalent to "use ProjectA as ProjectA;" by leaving the "as Something" out the default namespace would be changed. So by calling "use ProjectA;" the default namespace would change from globa

Re: [PHP-DEV] Set default namespace

2008-01-10 Thread Alexey Zakhlestin
"use ProjectA;" is equivalent of "use ProjectA as ProjectA;" if you want to use something from namespace you should "use" that something. for example: "use ProjectA::BOOK;" On 1/10/08, Tomi Kaistila <[EMAIL PROTECTED]> wrote: > Sorry for the ambiguous subject line, but I could not find a better

[PHP-DEV] Set default namespace

2008-01-09 Thread Tomi Kaistila
Sorry for the ambiguous subject line, but I could not find a better wording for it. Currently, when you use namespaces in PHP, whenever you want to call a function from inside a namespace you must either use the entire name of the namespace (potentially very long) or give it a shorter alias.