dmd 2.057 release

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Dec 13 23:47:54 PST 2011


Why is the result of this different between 2.056 and 2.057?

import std.stdio;
import std.regex;

void main() {
    string src = "4.5.1";
    foreach (c; match(src, regex(r"(\d+)")))
        writeln(c.hit);
}

2.056:
4
5
1

2.057:
4


More information about the Digitalmars-d-announce mailing list