wow. I can't beleive I didn't make the compiler check for assigning to "this".
Assigning to "this" is illegal. On Aug 30, 2005, at 4:20 PM, Tom Hall wrote:
This method freezes sclang (beach-ball) if the while loops evaluate
as true. Any suggestions to put me on the right track?
+ Number {
checkOct { | minFreq=30, maxFreq=16745 |
while ({ this < minFreq }, { this = this * 2});
while ({ this > maxFreq }, { this = this * 0.5});
^this
}
}
/* Test
32.checkOct // OK
3. checkOct // Very un-OK
*/
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users