D vs C++ classes?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Jul 1 11:26:23 UTC 2021


On Wednesday, 30 June 2021 at 14:13:23 UTC, Alexandru Ermicioi 
wrote:
> Which leads us to conclusion, that we can't afford a 99% 
> interop between C++ and D, unless someone is ready to pour lots 
> of resources into supporting templated code.

That is a fair point. A 50% solution won't work for future and 
upcoming C++ libraries, only for older libraries (which 
eventually disappear).

> Basically C++ interop should be opt in, as it is now, where you 
> can declare a class that it can interface with C++ code.

I actually think D has to make a strategic choice, either support 
C++ really really well, or depart from C and C++ and provide some 
novel useful features.




More information about the Digitalmars-d mailing list