extern(C++, NS)

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sun Nov 29 05:10:19 PST 2015


On 11/29/2015 05:40 AM, Manu via Digitalmars-d wrote:
>
> The trouble mostly appears in this situation:
>
> file1.d
>    extern(C++, NS) struct X;
>
> file2.d
>    extern(C++, NS) struct Y;
>
> file3.d
>    import file1, file2;
>    X x; // nope
>    Y y; // nope

Those two actually work for me.

>    NS.X x; // NS has multiple definitions...
>    NS.Y y; // NS has multiple definitions...



More information about the Digitalmars-d mailing list