extern(C++, ns) is wrong

12345swordy alexanderheistermann at gmail.com
Fri Sep 14 14:50:01 UTC 2018


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


More information about the Digitalmars-d mailing list