Mainstream D Programming

Raynor memphis007fr at yahoo.fr
Sun Oct 14 05:06:15 PDT 2007


Henning Hasemann a écrit :
> Since lots of things work differently in D and C++ it might be even
> easier to compile D code into C like opendylan does for example.
> (Note that you cant simple translate it to another language anyway. You
> *will* have to "compile" it ie instantiate templates etc... Maybe that
> would not even be *that* hard since there are a handful D code parsers
> underway already)
> 
> I dont know if you are aware of it but there is already a gcc frontend
> for D (called dgcc aka gdc) ie its possible to compile D code nearly
> everywhere where a gcc runs, so getting D code to run on an xbox or
> whatever shouldnt really be a problem I think.
> 
> Henning
> 

And for the bug free problem :
- If you compile some D code with gdc, then it just use a D parser and 
the common GCC native code generator.
- If you make a compiler to translate D code to C or C++ it also uses a 
D parser so it isnt less "bug free".

Moreover, Walter has already done some amazing C/C++ compiler and i 
think he reuses some code for D. So i think the majority of the problems 
  is not on the native code generator.



More information about the Digitalmars-d mailing list