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

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 28 14:06:08 PDT 2014


On 4/28/2014 2:00 PM, Simen Kjærås via Digitalmars-d wrote:
> I believe Steven expects things to work this way:
>
> module bar;
>
> extern(C++, foo) void func();
>
>
> module prog;
>
> import bar;
>
> void main()
> {
>     foo.func(); // Calls bar.func (or is that bar.foo.func?)
> }

It would call bar.foo.func(). But your example is different from Steven's.



More information about the Digitalmars-d mailing list