Open heuermh opened 3 years ago
My best guess on how you might do this would be this, but it gives a different kind of null pointer exception (at least on webchuck, where I tested it):
float foo[][];
float subfoo1[];
float subfoo2[];
subfoo1 @=> foo["one"];
subfoo2 @=> foo["two"];
5 => foo["one"]["a"];
6 => foo["two"]["b"];
<<< foo["one"]["a"], foo["two"]["b"] >>>;
The doc does not make it clear if associative arrays can be multidimensional, it appears not
Note in the error message
(array access)
shows ChucK is trying to use the wrong dimension.