"Walter Bright" wrote in message news:lhi1lt$269h$1...@digitalmars.com...
Here's Andrei's proposal: extern (C++) template nspace() { int foo(); }
This is really ugly and complicated. Why not just pragma(cpp_namespace, "outer") { pragma(cpp_namespace, "inner") { extern(C++) void func(); } }which is trivial to implement and doesn't require parser or semantic changes?
Adding syntax for actual namespaces to D is a different beast and IMO not worthwhile.