extern(C++, ns) is wrong

Nicholas Wilson iamthewilsonator at hotmail.com
Wed Sep 12 04:28:19 UTC 2018


On Wednesday, 12 September 2018 at 03:59:30 UTC, Danni Coy 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?

Very. The compiler would do it automatically because they would 
cause name collisions.


More information about the Digitalmars-d mailing list