extern (C++, N.M) { void foo(); }

    extern (C++) namespace N { namespace M { void foo(); }}
Excellent.  Solves the problem, doesn't add new language elements.

Reply via email to