[chuck-users] sociative polydimenional arrays

Kassen signal.automatique at gmail.com
Tue Nov 21 16:40:46 EST 2006


Spencer;


One quick fix for this goes as follows:
>
> int bar[3][8];
>
> 3 => bar[0][0];
>
> 5 => (bar[0])["test"];
>
> <<< bar[0][0] >>>;
> <<< (bar[0])["test"] >>>;



Works like a (temporary) charm!

Thanks, I never would've thought of using brackets like that myself.

Kas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20061121/120ff71f/attachment.htm 


More information about the chuck-users mailing list