On Friday, 12 September 2014 at 10:06:10 UTC, Sergey Korshunoff via Digitalmars-d wrote:
2014-09-11 0:12 GMT+04:00, ketmar via Digitalmars-d
<digitalmars-d@puremagic.com>:
write D -> C++ translator and add translated versions to repo too. no, really! this C++ code need not to be maintenable, so we can use C++
subset as "assembler language". i.e. use D frontend to make all
analysis, instantiate templates and so on, then just emit ugly,
unreadable, but working subset of C++. why C++? to support exceptions,
which can be hard to do properly with C.

LDC and LLVM allow to comvert a D source code to C source (and may be
to C++). What wrong with this solution?

There's nothing wrong with this solution. I think about this as a way to bootstrap LDC without requiring another D compiler.

Regards,
Kai

Reply via email to