w31rd0 wrote:
static timeEvent @ quarter; new timeEvent @=> quarter;
That seems to work, thanks.
Apparently I'm to stupid to figure out how to do the same split declaration/instantiation with arrays such as:
static int ids[10];
Chuck doesn't allow to declare references on primitive types. But it seems to allow to declare an empty array, which actually is a reference (or should be :) static int ids[]; new int[10] @=> ids; it works in a single line either: new int[10] @=> static int ids[]; ___________________ w31rd0
How would that look when rewritten?
-- peace, love & harmony Atte
http://www.atte.dk | quartet: http://www.anagrammer.dk http://www.atte.dk/gps | compositions: http://www.atte.dk/compositions _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users