D vs C++ classes?
Mathias LANG
geod24 at gmail.com
Mon Jun 21 17:55:25 UTC 2021
On Monday, 21 June 2021 at 13:40:42 UTC, Ola Fosheim Grøstad
wrote:
> What prevents unifying D classes with C++?
>
> By that I mean: shouldn't it be possible to formulate an ABI
> for D classes that makes them fully C++ compatible?
>
> Seems to me that D-interfaces can be implemented with C++ ABI
> for multiple inheritance for instance.
The main reason they can't be ABI compatible is the TypeInfo
AFAIR.
But `extern(C++)` does the job just fine.
More information about the Digitalmars-d
mailing list