extern(C++, ns) is wrong

Manu turkeyman at gmail.com
Wed Sep 12 21:06:23 UTC 2018


On Tue, 11 Sep 2018 at 20:59, Danni Coy via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
>
>
> So my understanding is that the main issue with extern(C++,"ns") is functions that have different C++ name-spaces overriding each other in unexpected ways.
> How feasible is to simply disallow functions/variables/objects/... with the same name but a different "ns" being in the same module?

That's natural behaviour. You can't declare the same symbol twice in
the same scope.


More information about the Digitalmars-d mailing list