DPP on the D Blog

DanielG simpletangent at gmail.com
Tue Apr 9 21:11:28 UTC 2019


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



More information about the Digitalmars-d-announce mailing list