On 1 March 2013 07:26, Jacob Carlborg <doob@me.com> wrote:
On 2013-02-28 18:18, Iain Buclaw wrote:

We still do not know what portions of the frontend is being ported over
to D.  The way gdc is written, it takes the D Frontend, removes all C++
parts that interface with dmd's backend - toElem; toIR; toObjFile;
toSymbol; toCtype; toDt (this latter one I am in the middle of removing
from gdc) and implements them to instead build GCC trees, the code
itself also being in C++.

These are all methods defined in D Front-End, and rely on calling and
interfacing with the gcc backend.  Re-writing these in D is not an
option, as require access to GCC macros.

If you're removing these functions does it matter which language they're written in ?

--
/Jacob Carlborg


Not removed, re-written.  For example, VectorExp::toElem().

For gdc: https://github.com/D-Programming-GDC/GDC/blob/master/gcc/d/d-elem.cc#L2375
For dmd: https://github.com/D-Programming-Language/dmd/blob/master/src/e2ir.c#L3820


Regards
--
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';