C++ Interop Ideas

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Oct 15 06:50:35 PDT 2007


"Craig Black" <cblack at ara.com> wrote in message 
news:fevgtk$bma$1 at digitalmars.com...

> My understanding of the current C++ interface is that we have 
> interoperability via virtual functions only.  We can not link D with C++ 
> using non-virtual functions.  My first question is, what are the 
> incompatibilities that disallow linking C++ to D with regard to 
> non-virtual functions?  I know that we can do so using a C wrapper, but it 
> would be nice if native C++ could do this as well, even if only primitive 
> types are allowed as parameters.

The first section in the "Interfacing to C++" part of the spec is called 
"Calling C++ Global Functions From D", and the second "Calling Global D 
Functions From C++".  Hopefully you've seen this section of the spec? 





More information about the Digitalmars-d mailing list