DIP61: redone to do extern(C++,N) syntax

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 28 08:32:50 PDT 2014


On Monday, 28 April 2014 at 14:27:19 UTC, Steven Schveighoffer 
wrote:
> void main()
> {
>    func(); // error
>    foo.func(); // ALSO error
>    bar.func(); // Not error, BUT it's actually calling 
> foo::func from C++ land!
> }

I don't see any fundamental issue here because you can still use 
renamed imports to disambiguate any call. However it does feel 
extremely dirty from the reading clarity point of view and can be 
a good reason to prohibit naive usage of namespaces in D code in 
same way as modules.


More information about the Digitalmars-d mailing list