C++ interface.
Jacob Carlborg
doob at me.com
Tue Apr 1 10:59:20 PDT 2014
On 2014-04-01 19:32, monnoroch wrote:
> 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.
I'm pretty sure you can use extern (C++) then manually specify the
mangling using pragma(mangle, "mangled_c++_name").
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list