DPP on the D Blog

Atila Neves atila.neves at gmail.com
Fri Apr 19 09:04:50 UTC 2019


On Tuesday, 9 April 2019 at 21:11:28 UTC, DanielG wrote:
> 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

I've considered this, and am still considering it, despite not 
having heard of javacpp before. Thanks for the link, I'll take a 
look.


More information about the Digitalmars-d-announce mailing list