DIP61: redone to do extern(C++,N) syntax
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Mon Apr 28 07:56:24 PDT 2014
On Mon, 28 Apr 2014 10:46:33 -0400, Byron <byron.heads at gmail.com> wrote:
> On Sun, 27 Apr 2014 12:54:51 -0700, Walter Bright wrote:
>
>> http://wiki.dlang.org/DIP61
>
> Would nesting imported namespaces work?
>
> lib/package.d
> public
> export(C++, a) {
> public import lib.b;
>
> }
>
>
> lib/b.d
> export(C++, b) {
> void foo();
> }
>
> main.d
> import lib;
> a.b.foo();
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
More information about the Digitalmars-d
mailing list