Specifying C++ symbols in C++ namespaces
Walter Bright
newshound2 at digitalmars.com
Thu Apr 3 12:43:23 PDT 2014
On 4/3/2014 3:36 AM, Michel Fortin wrote:
> I'd tend to simply implement extern(C++, namespace.here), which should work fine
> to wrap single-namespace cpp files, and wait to see what are the actual friction
> points before introducing more (people can experiment with structs or other
> modules meanwhile).
You have a good point in that to go all the way with namespaces, we'd have to
implement Koenig lookup and support insertion of names into previous namespaces.
I can't see this happening in D.
But I don't see that as much of an argument to not do simple scoping with
namespace lookup.
More information about the Digitalmars-d
mailing list