re: the difficulties of interfacing D with certain types of C/C++
code ...
Has anybody looked into something like a JavaCpp[1] approach for
D?
Instead of trying to get D to speak directly with C++, or
translating C/C++ headers to D, why not use special annotated D
code to generate a middleman .cpp file, which then exports a
D-friendly interface? Then all the dirty work gets handled by a
C++ compiler.
Wouldn't that be an order of a magnitude easier to implement?
[1]: https://github.com/bytedeco/javacpp