[chuck-users] Inner loop array index bug
Hans Aberg
haberg at math.su.se
Wed Apr 22 11:51:09 EDT 2009
On 22 Apr 2009, at 16:18, Stefan Blixt wrote:
> I think ChucK can get pretty confused about this line:
>
> x[msg.which] => int x;
>
> ...in which x is treated both as an array and as a newly declared
> integer variable. I would rename the array to avoid confusion.
That was indeed the problem. Thank you.
ChucK accepts that name overload in some situations, so I started to
use it, though it differs from C/C++.
Hans
More information about the chuck-users
mailing list