Summary: core.time module constructor runs AFTER main program's
                    module constructor
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime

--- Comment #0 from Vladimir Panteleev <> 2011-09-08 
17:30:31 PDT ---
(This might be a DMD bug)

import core.time;
static this()
    assert(TickDuration.ticksPerSec != 0);
void main() {}

The above will fail, because the core.time module constructor will not have ran
when the check is performed. The assert will pass if moved inside main().

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to