extern(C++, ns)

Manu via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 13 18:10:30 PST 2016


On 14 January 2016 at 11:52, Meta via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Thursday, 14 January 2016 at 01:33:01 UTC, Manu wrote:
>>
>> I managed to quickly reduce to this point again:
>>
>> module m.x;
>> alias X2 = X;
>> extern (C++, ns) struct X {}
>>
>> Error: undefined identifier 'X'
>>
>> I was using the nightly from the other night that I used to test the
>> alias fix, but it seems to be the same thing.
>> I figured I must be using the wrong toolchain somehow, purged DMD from
>> my machine, confirmed the compiler was gone from path, got the nightly
>> from last night: (https://builds.dawg.eu/dmd-2016-01-13/), tried it
>> again, same error.
>> Not sure... I tested this fix the other day, but now I'm seeing it
>> again. That patch was merged right? Should be present in the nightly?
>
>
> Shouldn't that be `alias X2 = ns.X`?

No, that's the whole point. If we need to do ns.X, then the whole
thing becomes unusable as soon as you have 2 modules.


More information about the Digitalmars-d mailing list