D compiler as a C++ preprocessor

Sergey Gromov snake.scaly at gmail.com
Sun Jun 28 16:50:37 PDT 2009


Sat, 30 May 2009 04:16:09 -0400, Dmitry Sychov wrote:

> Can D compiler be used only as a C++ preprocessor, that it to
> generate  C++ output (platform independent) to be later compiled via
> the target platform C++ compiler? 

I'm sure translation from D into C were discussed before, not even once,
as a means of diversifying the list of supported platforms.  The culprit
was exception handling.  The conversion to C++ were discussed too IIRC,
but not as enthusiastically for some reason.  I cannot think of any real
blockers for such a `preprocessor'.  Maybe forward references, but the
current D compiler has problems with them as well.



More information about the Digitalmars-d mailing list