Recently I tried std.regex, and must say Im very satisfied with new interface.
Just one small objection, I think captures range dont need match.hit at front.
But I can live with it :)
Daniel Gibson Wrote:
> > Question: May we eliminate seekFromCurrent and seekFromEnd and just
> > have seek with absolute positioning? I don't know of streams that
> > allow seek without allowing tell. Even if some stream doesn't, it's
> > easy to add support for tell in a wrapper. The marginal
Daniel Gibson Wrote:
> > Question: May we eliminate seekFromCurrent and seekFromEnd and just
> > have seek with absolute positioning? I don't know of streams that
> > allow seek without allowing tell. Even if some stream doesn't, it's
> > easy to add support for tell in a wrapper. The marginal
Nick Sabalausky Wrote:
>
> Yes. The runtime is currently built into the exe. With C/C++, the runtime is
> often stored separately so the exe files themseves end up a lot smaller,
> even though they rely on at least as much compiled code.
>
>
Thanks!
Hi,
Today I compiled my old two module console program with d-2.50.
It uses only std.c.time, std.c.stdio, std.random and templates.
Compiled with -O -release, on windows.
Executable size (d-2.50): 4.184 kb.
Trayed with d-1.30: 84 kb.
Is it expected?
"Andrei Alexandrescu" wrote in message
news:gnkc24$hu...@digitalmars.com...
>
> The consecrated terminology is:
>
> foreach(match; match(s, r))
>foreach(capture; match)
> writeln(capture);
>
> "Group" is a group defined without an intent to capture. A "capture" is a
> group that also b
"Andrei Alexandrescu" wrote in message
news:gnk8te$cg...@digitalmars.com...
>
> Looks simple but it isn't. How do you advance to the next match?
>
> foreach (m; "abracadabra".match("(.)a", "g")) writeln(m.capture[0]);
>
> This should print:
>
> r
> c
> d
> r
>
> There's need to make progress in