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

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sat Dec 13 04:26:50 PST 2014


On Sat, 13 Dec 2014 11:38:47 +0000
ddj via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> You already have better D1.
as D2 wasn't created from the scratch, it was easier to reuse already
written c++ code. there is no big difference in having D2 compiler
written in c++ or in D1, both of them are not D2. DMD c++ is very close
to "restricted c with classes" with banned STL, templates, multiple
inheritance and so on. so it doesn't really matters.

besides, having it written in D1 means that D1 compiler must be
supported all this time, making devs effectively support TWO D versions
instead of one. and by using c++ devs can "outsource" c++ support to
another teams. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141213/1c484cfb/attachment.sig>


More information about the Digitalmars-d mailing list