On Sun, 16 Nov 2014 22:09:00 +0000
via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> On Sunday, 16 November 2014 at 22:00:10 UTC, ketmar via 
> Digitalmars-d wrote:
> > that's why warp is faster than cpp? ;-)
> Which implementation of cpp?
gcc implementation, afair. it's slowness was the reason for warping.

> (Btw, take a look at lexer.c in DMD :-P)
c++ has no good string type, so there is no much choice.

as a writer of at least four "serious" scripting languages (and alot
more as "toy" ones) i can tell you that zero-terminated strings are
PITA. the only sane way to write a good lexer is working with structure
which emulates D string and slicing (if we must parse text from
in-memory buffer, of course).

Attachment: signature.asc
Description: PGP signature

Reply via email to