Furthermore. The problem with echo 'a::b::c();' would only
occur if the code structure would be like this:

namespace a {
  namespace b {
    function c() { }
  }

  class b {
    function c() {  }
  }

}

However, should it be legal to give a class the same name as
a namespace that's in the same scope? Maybe the code above
should simply fail with a message:

'Fatal error: Cannot redeclare class/namespace b'

This way we could use '::'  :D



> BdB>>The above can either mean "call function c in namespace b under
> BdB>>namespace a" or "call static method c of class b under namespace a".
> BdB>>Since this cannot be determined, "::" cannot be used.
>
> This provided we support nested namespaces. Do we need them?
> --
> Stanislav Malyshev, Zend Products Engineer
> [EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115
>

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

Reply via email to