can D compiler support C/C++ source code?

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 21 09:02:55 PDT 2015


On Monday, 21 September 2015 at 05:32:52 UTC, Rikki Cattermole 
wrote:
> What you are asking for is a c/c++ frontend as part of the D 
> compiler, which is completely infeasible.

Of course it's feasible, but it would mean that the D compiler 
would have to have a full-blown C++ compiler built into it, and 
we don't want that maintenance nightmare, and we certainly don't 
want to put in the time and effort that would be required to do 
it. D already has far better support for C/C++ than is typical of 
languages which aren't C or C++, and it may improve further, but 
there are limits to what is reasonable to do, and it's been 
stated on multiple occasions that we don't want to implement 
C/C++ in the D compiler.

- Jonathan M Davis


More information about the Digitalmars-d mailing list