D-converter: is there any way to convert D-language to Java or C ++?

Since D is close to C, I wonder if there is a translator there.

If not, do you have any other interim solutions?

+3
source share
3 answers

Here's TDC , which is an abandoned attempt to convert D to C. There's also TioPort , which goes the other way and converts Java to D. I'm not sure if it works.

Finally, I think LLVM can translate its byte code to (completely unreadable) C code. LDC can compile D code using LLVM, and I think (I don't know for sure) that it can output byte code instead of native code .

+5
source

, C- D, , , - SWIG "C", Java.

+2

http://www.dsource.org/projects/visuald/wiki/Tour/CppConversion

Starting from the console ¶ The download folder contains the command line version of this wizard: cpp2d.exe

You can transfer the configuration file to the converter, which was saved in the wizard dialog box.

cpp2d -config myoptions.c2d [specification files ...]

+1
source

All Articles