extern(C++, ns)
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 19 19:20:01 PST 2016
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.)
More information about the Digitalmars-d
mailing list