On 11/30/2015 10:51 AM, Ola Fosheim Grøstad wrote:
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.
Did you look at the example I posted?
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.
Please examine the example I gave again before assuming how D works.