std.regex performance

bearophile bearophileHUGS at
Wed Feb 8 15:17:59 PST 2012

Timon Gehr:

> The compiler should do loop invariant code motion for pure functions.

Right, that too. But in DMD 2.058alpha this doesn't compile, regex() isn't pure:

import std.regex;
void main() pure {
    auto re = regex(r"\d");


More information about the Digitalmars-d mailing list