D vs C++ classes?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Jun 21 22:27:46 UTC 2021


On Monday, 21 June 2021 at 17:55:25 UTC, Mathias LANG wrote:
> The main reason they can't be ABI compatible is the TypeInfo 
> AFAIR.
> But `extern(C++)` does the job just fine.

Does this mean that you make all your classes `extern(C++)` ?

Can I define `extern(C++)` classes in D and instantiate them in D 
just fine and pass them to C++?



More information about the Digitalmars-d mailing list