C++ interface.
monnoroch
monnoroch at gmail.com
Tue Apr 1 12:29:55 PDT 2014
On Tuesday, 1 April 2014 at 18:37:06 UTC, Walter Bright wrote:
> The problem is "how to specify C++ namespaces in D".
Why don't just use dot? So, that:
extern(C++) {
void nmr.initialize(int argc, const(char)*[] argv);
}
Would get converted to whatever void nmr::initialize(int,
const(char)*[]) would became mangled in c++.
If you do not want to hack parser into doing it, just
nmr_initialize would be ok.
So, if i write:
extern(C++) {
void nmr_initialize(int argc, const(char)*[] argv);
}
It would first try to search nmr_initialize itself, and if thre
is no, it would try to find nmr::initialize. Recursevly y the
number of ::-s.
More information about the Digitalmars-d
mailing list