[PHP-DOC] Re: namespaces docs

2008-11-17 Thread Gregory Beaver
Stanislav Malyshev wrote: > Hi! > >> instantiates a class in the foo\bar namespace named buh. In other >> words, it instantiates class buh from the sub-namespace bar of namespace >> foo. > > Why there's "subnamespace bar of namespace foo" and not just "namespace > foo\bar"? When such notation is

[PHP-DOC] Re: namespaces docs

2008-11-17 Thread Stanislav Malyshev
Hi! instantiates a class in the foo\bar namespace named buh. In other words, it instantiates class buh from the sub-namespace bar of namespace foo. Why there's "subnamespace bar of namespace foo" and not just "namespace foo\bar"? When such notation is useful? The important line is "MyName

[PHP-DOC] Re: namespaces docs

2008-11-14 Thread Greg Beaver
Stanislav Malyshev wrote: > Hi! > >> Shows that a namespace name with \ acts very differently from a >> namespace name without \ in imports, so I don't think it is entirely >> accurate to say that PHP namespaces don't support sub-namespacing. > > I'm afraid I don't understand what do you mean by

[PHP-DOC] Re: namespaces docs

2008-11-13 Thread Stanislav Malyshev
Hi! Shows that a namespace name with \ acts very differently from a namespace name without \ in imports, so I don't think it is entirely accurate to say that PHP namespaces don't support sub-namespacing. I'm afraid I don't understand what do you mean by "sub-namespacing" besides the trivial f