DIP61: Add namespaces to D

Tobias Müller via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 27 02:09:48 PDT 2014


Walter Bright <newshound2 at digitalmars.com> wrote:
> On 4/26/2014 4:01 AM, Mike wrote:
>> pragma(cpp_namespace, "A.B")
>> extern(C++) void f() {}
> 
> This implies that it only affects the name mangling. There needs to be a
> scope created, too.

I think that's the crucial point here. Most people that disagree with your
proposal disagree exactly with that.
Scope should be created by modules and only modules.

Tobi


More information about the Digitalmars-d mailing list