extern(C++, ns) is wrong

Manu turkeyman at gmail.com
Fri Sep 14 16:56:45 UTC 2018


On Fri, 14 Sep 2018 at 07:55, 12345swordy via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Friday, 14 September 2018 at 13:10:07 UTC, Atila Neves wrote:
> > On Friday, 14 September 2018 at 09:56:52 UTC, Zot wrote:
> >> [...]
> >
> > I'm also completely in favour of what Manu is saying. The
> > current situation works for no one. I very much doubt that any
> > D programmer exists that wants what extern(C++) currently does.
> >
> > Yes, C++ namespaces are a mess. Who cares? We have modules. All
> > we want is to be able to link.
> >
> > Walter pointed out workarounds, but: they're solutions to a
> > problem that shouldn't exist; are ugly as sin; aren't even
> > sufficient for manually writing bindings in the way the author
> > intends.
> >
> > Forum chatter won't do it though, we need a DIP.
> Someone is already on it.
> https://github.com/look-at-me/DIPs/blob/please-for-the-love-of-all-things-good-and-holy-fix-cpp-mangling-please-ok-sorry/DIPs/DIPxCPP.md

I can't wait for a DIP.
That's like 12 months turnaround, and I've already lost weeks waiting
for some trivial PR's about version identifiers that are still
pending... this will take years.


More information about the Digitalmars-d mailing list