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?