extern(C++, ns)

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 19:18:33 PST 2016


On Wednesday, 20 January 2016 at 02:51:55 UTC, Timon Gehr wrote:
>> What happens when one has conflicting symbols in 2 C++ 
>> namespaces ?
>>
>> D's mapping of C++ namespaces could just mimic how import 
>> resolution
>> work : allow qualified and unqualified access to the symbol 
>> when there
>> is no conflict, forces you to use the qualified one when there 
>> (or to
>> create an alias, or whatever).
>
> That's how it works. However, two namespace declarations with 
> the same identifier will conflict, unlike in C++.

Well that can - and should - fixed fairly easily.



More information about the Digitalmars-d mailing list