3 ms·
C++ was deliberately backwards compatible with C. D was not backwards compatible with C or C++.
by cwyers 9y ago
C++ was deliberately backwards compatible with C. D was not backwards compatible with C or C++.
- gorthol 9y agoD uses C calling conventions and struct layout so it's pretty trivial to call D code from D or vicecersa and link together, the only step added over C++ is writing an include file with the declarations of the stuff you want to call.