extern(C++, ns)

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 19 00:54:30 PST 2016


On 1/19/2016 12:42 AM, Daniel Murphy wrote:
> So???? Why make extern(C++, namespace) introduce a new symbol? Why not just let
> it change ONLY mangling and use modules to organize symbols and resolve conflicts?

1. Because a namespace is a scope, and is expected to act like one.

2. So names in different namespaces will not conflict.

3. So names in namespaces can be referenced as:

     std.exception

as one would expect.

As the length of this thread testifies, this has been discussed at length already.


More information about the Digitalmars-d mailing list