On 2013-03-01 11:29, Iain Buclaw wrote:Can you use the current toElem, toIR and toSymbol written in C++. Then port in changes from the version written in D as needed?
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.
--
/Jacob Carlborg