[chuck-users] quiting chuck from chuck and saving reference to function

altern altern2 at gmail.com
Thu Nov 9 22:34:26 EST 2006


:) but your way doesnt block the loop!
how come?

0 => float off;
while (true){
	if(off){break;}
}

locks the loop i am not sure why, but

0=>int off;
while(!off){
   	0.2::second => now;
}

does not lock it. Or thats what it seems to me...
any reason for this?

thanks!

enrike



joerg piringer wrote:
> altern wrote:
>> I just needed this, setting variable off to 1 exits the main loop. I am 
>> still confused with ChucK ;) so i guess i did not asked the question in 
>> the right way.
>>
>> 0=>int off;
>> while(true){
>> 	if(off){break;}
>> 	0.2::second => now;
>> }
>>
> 
> you could even write:
> 
> 0=>int off;
> 
> while(!off)
> {
>   	0.2::second => now;
> }
> 
> 
> best
> joerg
> 



More information about the chuck-users mailing list