DIP61: redone to do extern(C++,N) syntax

Byron via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 28 08:05:25 PDT 2014


On Mon, 28 Apr 2014 10:56:24 -0400, Steven Schveighoffer wrote:

> 
> Most definitely no. When the compiler builds b.d, he has no idea it's
> imported from inside another namespace! We don't want #include-style
> issues.
> 
> -Steve

So we would have to include the entire namespace in a single d file
or is this okay:

a/package.d
extern(C++, a) {} 
public import a.b;

a/b.d
extern(C++, a.b) {}



More information about the Digitalmars-d mailing list