On Tue, Jun 2, 2009 at 12:16 AM, Russell Lewis
<[email protected]> wrote:

>
> P.S. Does anybody know why dmd complains "cannot evaluate at compile time"
> when I set those regex objects to "static invariant" so I'm not rebuilding
> them with every pass?
>

Because it wants you to have a constant expression to initialize a
static variable, and so it tries to evaluate regex(...) at compile
time.  You know, there's a much easier way to prevent them from being
reinitialized every iteration - move their declaration above the loop.

Reply via email to