Following code prints "0" using
DMD32 D Compiler v2.068.0
Is this a bug?

import std.stdio;
class Foo {
        static int[10] tbl;
        static this() {
                foreach(ref v; tbl) {
                        v = 1;
                }
        }
}
void main() {
    writeln(Foo.tbl[0]);
}

regards, aki.

Reply via email to