extern(C++, ns) is wrong

Manu turkeyman at gmail.com
Wed Sep 19 00:22:55 UTC 2018


On Mon, 17 Sep 2018 at 06:00, Atila Neves via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Sunday, 16 September 2018 at 17:46:26 UTC, Steven
> Schveighoffer wrote:
> > On 9/14/18 6:41 PM, Neia Neutuladh wrote:
> >
> >> Specifically, Walter wants this to compile:
> >>
> >> module whatever;
> >> extern(C++, foo) void doStuff();
> >> extern(C++, bar) void doStuff();
> >>
> >> And he's not too concerned that you might have to use doubly
> >> fully qualified names to refer to C++ symbols, like:
> >>
> >> import core.stdcpp.sstream;
> >> import core.stdcpp.vector;
> >> core.stdcpp.vector.std.vector v;
> >
> > This is probably the best explanation of why the current
> > situation sucks.
> >
> > -Steve
>
> Agreed. Up until now, I didn't even understand the rationale for
> why it works the way it does.

https://github.com/dlang/dmd/pull/8667

O_O

Thank you Walter for coming to the party!


More information about the Digitalmars-d mailing list