3 ms·
The D programming language has literally a zero overhead to interface with C. The same calling conventions are used, the types are the same. D can also access
by WalterBright 5y ago
The D programming language has literally a zero overhead to interface with C. The same calling conventions are used, the types are the same.
D can also access C code by simply importing a .c file:
import foo; // call functions from foo.c
analogously to how you can `#include "foo.h"` in C++.