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

So, feel free to send me a list of questions you want me to answer. :o)

Could the GDC front end remain in C++ and changes be folded in anyway? These changes do not need to be direct translation of the D code.

--
/Jacob Carlborg

The code that interfaces with gcc needs to be in either C or C++.  There are C++ structs/classes defined in the D frontend that while they include all methods required for parsing/semantic analysis of D code.  They also include methods that are used to generate the codegen for the backend (toElem, toIR, toSymbol, etc).  In gdc, these are gcc interfacing methods that can't be converted to D.

--
Iain Buclaw

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