www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Circular initialization dependency error?

Content-Type: text/plain

Hi,

If I import the "std.stdio" module after "std.date" and use writefln, DMD 2.014
compiles just fine, but running the program yields an error: "Error: circular
initialization dependency with module std.date".

But, if I switch the order of the imports then no error happens. Is this
behaviour normal?

Thanks,
Jul 18 2008