On 4/4/2014 5:34 AM, Dicebot wrote:
Late to the thread, my short opinion:

extern(C++ namespace::path) looks best. It should only affect mangling and have
no impact on fully qualified name on D side. Most KISS solution I have read in
the thread.

Fails because:

C++:

    namespace S { namespace T {
        int foo();
        namespace U {
            int foo();
        }
     } }

D:

  extern (C++, S::T) {
      int foo();
      extern (C++, U) {
        int foo();
      }
  }
  foo();  // error, ambiguous, which one?
  S.T.foo(); // S undefined


Reply via email to