extern(C++, ns)

Manu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 19:55:39 PST 2016


On 20 January 2016 at 13:20, Walter Bright via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On 1/19/2016 6:51 PM, Timon Gehr wrote:
>>
>> That's how it works. However, two namespace declarations with the same
>> identifier will conflict, unlike in C++.
>
>
> Right. Also, in C++, function overloading can behave erratically depending
> on which version(s) of a namespace are visible or not. D doesn't have this
> problem, you'll have to use aliases and/or qualification if overloading
> across namespaces with the same name. (The usual anti-hijacking rules.)

This is no different than normal use of modules.


More information about the Digitalmars-d mailing list