Ge Wang wrote:
chuck-1.2.0.6 (dracula), a minor release, is now available:
Unfortunately this release doesn't work with my in-progress system written in chuck. I have the following (heavily snipped): public class timeEvent extends Event{ } public class Time { static timeEvent quarter; fun static void send(){ while(true){ "length of quarter note" => now; Time.quarter(broadcast); } } } This mean that I can have the following (not snipped, this is a complete .ck file, extremely compact and elegant) for four-on-the-floor: while (true){ Time.quarter => now; spork ~ Instruments.analog_bd(); } Now, running the new release I get: [time.ck]:line(34): cannot declare static non-primitive objects (yet)... [time.ck]:line(34): ...(hint: declare as ref (@) & initialize outside for now) Where line 34 is exactly: static timeEvent quarter; Could/should I really change my code to work with this release, following the above suggestion? In any case, I'd rather not clutter up things, I think (at this point) the old way of doing things was fine. Besides I have 9878 lines of chuck code in my system, so not to confuse things... -- peace, love & harmony Atte http://www.atte.dk | quartet: http://www.anagrammer.dk http://www.atte.dk/gps | compositions: http://www.atte.dk/compositions