C++ to D Utility?

dsimcha dsimcha at yahoo.com
Thu Oct 22 12:21:00 PDT 2009


== Quote from AJ (aj at nospam.net)'s article
> Is there a utility to convert C++ code to D code?

No.  In theory it would be possible to write one, but it wouldn't be particularly
useful, as its output would likely not be readable D code.  Look at some of the C
code output by language x to C compilers.  It's not readable C.  It's filled with
gotos and no high-level constructs, etc.  This analogy is relevant b/c D has a
C-like subset and the higher level parts are the harder parts to target
programmatically.  Translating into *readable* code would probably require some
program that passes the Turing test.



More information about the Digitalmars-d mailing list