24 Nov
2009
24 Nov
'09
1:51 p.m.
For some reason, 'chuck' does not instantiate class static constants until there has been an instantiation of the class itself. Hans ---- static.ck ---- class Test { 3 => static int d; fun static void print() { if (d == 0) chout <= "Nope!\n"; else chout <= "Yep.\n"; } } Test.print(); Test test_; Test.print(); ---- run ---- $ chuck static.ck Nope! Yep. ----