[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] SystemClock-schedAbs explodes when time arg not used?



Hi,

This seems strange;

this will work correctly;

(
~f = {|val| val.postln; };

3.do{arg i;
	SystemClock.schedAbs( thisThread.seconds + 5.0 , {arg
time;
          "what is going on?".postln; ~f.value( i ); 
		  ("current time is "++time).postln;
            } );
}
)

3
what is going on?
0                   <---- 0? SHOULDNT IT BE 3??
current time is 1127385430.3299
what is going on?
2
current time is 1127385430.3299
what is going on?
1
current time is 1127385430.3299


Ok, everything fine (except that strange first 0
instead of 3) but now comment the line:
("current time is "++time).postln;

the sclang hangs and it get stuck dumping the value
i=0 value. This is a month or so old CVS. Should i
update or this happens also with current cvs?








	


	
		
___________________________________________________________ 
1GB gratis, Antivirus y Antispam 
Correo Yahoo!, el mejor correo web del mundo 
http://correo.yahoo.com.ar