C++ to D Utility?

AJ aj at nospam.net
Thu Oct 22 12:52:56 PDT 2009


"dsimcha" <dsimcha at yahoo.com> wrote in message 
news:hbqbas$1hct$1 at digitalmars.com...
> == 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.

OK. That shows that D is a drastic departure from C++. Why changes to code 
punctuation (i.e., semicolons) would matter in regards to "luring C++ 
programmers" is not apparent. 





More information about the Digitalmars-d mailing list