Complex Initialization of static properties
public static var NUMBERS = { var a = new List(); for (i in 0...10) a.add(i); a; // result of last block expression is saved in NUMBERS }
A clean way to initialize a static List with Ints from 0 to 9, without hacking stuff in the __init__ function.
version #8104, modified 2010-02-07 18:26:51 by hhoelzer