http://d.puremagic.com/issues/show_bug.cgi?id=6631

           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
        AssignedTo: nob...@puremagic.com
        ReportedBy: thecybersha...@gmail.com


--- Comment #0 from Vladimir Panteleev <thecybersha...@gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to