This article demonstrates how to do near transparent FFI calls to C, judicious use of mixin and template programming to wrap away the tedious bits. Use of -betterC
flag to ensure that D is merely used as a “better C” with no dependency on Garbage Collector and the D runtime.
There seems to be quite some D stuff recently. Do we need a
D
tag?Yes! I was surprised to find no tag for D.