C++ interface.

monnoroch monnoroch at gmail.com
Tue Apr 1 10:32:17 PDT 2014


Could anyone explain, why D cannot interface C++ functions in 
namespaces like that:

namespace A {
    struct S {};
    struct T {};
    S* get(T* v);
}

Because i just ddon't get it: namespaces are just a part of C++ 
name mangling, they are not something special.

Support of this kind of functions would make it much easier to 
integrate D in existing C++ repos, which is the key to success 
(sadly, though).


More information about the Digitalmars-d mailing list