DIP61: Add namespaces to D

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 26 16:35:44 PDT 2014


Walter Bright:

> Since the namespace keyword doesn't seem to be gaining much 
> traction, an alternative syntax would be:
>
>     extern (C++, N.M) { void foo(); }
>
> which would be semantically equivalent to the previous:
>
>     extern (C++) namespace N { namespace M { void foo(); }}

It looks worse, so it looks better :-)

Bye,
bearophile


More information about the Digitalmars-d mailing list