extern(C++, ns)

Manu via Digitalmars-d digitalmars-d at puremagic.com
Sun Jan 17 21:32:47 PST 2016


On 15 January 2016 at 12:25, Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 1/14/2016 6:24 PM, Walter Bright wrote:
>>
>> On 1/13/2016 9:39 PM, Walter Bright wrote:
>>>
>>>    https://issues.dlang.org/show_bug.cgi?id=15565
>>
>>
>> https://issues.dlang.org/show_bug.cgi?id=15565
>
>
> I meant:
>
>   https://github.com/D-Programming-Language/dmd/pull/5351

Confirm that problem is solved in latest daily.

Next one:

void f()
{
  j = 0; // works as expected
  k = 0; // fail
}
private:
__gshared int j;
extern(C++, ns) __gshared int k;

> Error: module x variable x.ns.k is private


More information about the Digitalmars-d mailing list