Why do you write D2 compiler using C++ language?

ddj via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 13 06:04:25 PST 2014


But then you miss all great features of D, all protection from 
bugs that D offers, like contracts and tests! Initial saving time 
cost more in long term


On Saturday, 13 December 2014 at 12:19:19 UTC, Rikki Cattermole 
wrote:
> On 14/12/2014 12:38 a.m., ddj wrote:
>> You already have better D1.
>
> The usage of c++ for dmd front end is the original language for 
> it. Aka it would be rather hard to write a front end for D 
> without a D compiler.
> Its currently being ported over to D.
>
> As for why it wasn't changed over when D2 started. Probably was 
> seen as too much work at the time.



More information about the Digitalmars-d mailing list