Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C++ was deliberately backwards compatible with C. D was not backwards compatible with C or C++.


D 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: