Is this a good way of setting up a timer?

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jun 4 11:14:58 PDT 2011


Hey, so is there a reason I'm not allowed to use immutable here:

immutable finalTime = Clock.currTime + dur!"seconds"(5);

Error: cannot implicitly convert expression
(currTime(cast(immutable(TimeZone))opCall()).opBinary(dur(5L))) of
type SysTime to immutable(SysTime)


More information about the Digitalmars-d-learn mailing list