Is there any good reason why C++ namespaces are "closed" in D?

Nicholas Wilson iamthewilsonator at hotmail.com
Wed Aug 1 04:02:44 UTC 2018


On Tuesday, 31 July 2018 at 23:02:16 UTC, Rubn wrote:
> One thing I don't like is that the C++ namespaces takes the 
> name. So if you try to import a module that has C++ namespace 
> of the same with the existing module, then you'll get an error. 
> For effectively no reason, because as you say that namespace is 
> useless and just occupies a name that could otherwise be used 
> for the module name.

Indeed, case in point: std


More information about the Digitalmars-d mailing list