On Wed, 26 Mar 2003, Stanislav Malyshev wrote:

> SH>> I believe the way it was designed was:
> SH>> 
> SH>> namespace A {
> SH>>     namespace A:B {
> SH>>        class C {
> SH>>        }
> SH>>     }
> SH>> }
> 
> That's the same thing. As was noted repeatedly on the lists, ':' has no 
> semantic meaning, A and A:B are not related in any way.
> 
> One again:
> Namespaces are not 'nested'. You can define namespace inside other 
> namespace, this does not make them related. There's no namespace nesting. 
> ':' in namespace name does not mean anything. 


But it *is* confusing (just as function() { function() {} }, but of 
course we can not change that anymore). What is the reason of allowing 
this 'nested' stuff?

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/
-------------------------------------------------------------------------

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

Reply via email to