extern(C++, NS)

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 30 10:51:40 PST 2015


On Monday, 30 November 2015 at 17:38:06 UTC, Walter Bright wrote:
> It'd be worthwhile to learn how D's name lookup system works 
> before declaring it lame and insufficient:

Nobody has said anything about lame. The issue is that you don't 
need to know of "version1" on the C++ side. One purpose is to use 
the "inline" as a switch, so that you can use macros to turn on 
and off different library subsets. "inline" is injected in front 
of namespaces that are to be accessible in the parent, and that 
injection can be done by a macro.

But on the D side you need to know of "version1" if D does not 
parse C++ headers. Which is a maintenance burden.



More information about the Digitalmars-d mailing list