std.regex

2011-02-11 Thread jovo
Recently I tried std.regex, and must say I’m very satisfied with new interface. Just one small objection, I think captures range don’t need match.hit at front. But I can live with it :)

Re: streaming redux

2010-12-28 Thread jovo
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

Re: streaming redux

2010-12-28 Thread jovo
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

Re: executable size

2010-12-18 Thread jovo
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!

executable size

2010-12-18 Thread jovo
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?

Re: Is str ~ regex the root of all evil, or the leaf of all good?

2009-02-19 Thread jovo
"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

Re: Is str ~ regex the root of all evil, or the leaf of all good?

2009-02-19 Thread jovo
"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