extern(C++, NS)

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 30 02:04:10 PST 2015


On Monday, 30 November 2015 at 07:45:54 UTC, Walter Bright wrote:
>> Why not produce something similar to an overload set for C++ 
>> namespace ? An
>> error needs to be issued only if X or Y is duplicated, 
>> otherwise, this is fine.
>
> Because I'd rather have symbol table lookups done in a 
> consistent manner, rather than special casing it everywhere. 
> The above behavior is completely consistent with how everything 
> else works, because it uses the exact same code.

The proposed behavior is also not new (as per spec, alas it 
doesn't work in DMD), as it is the same as for multiple alias 
this.



More information about the Digitalmars-d mailing list