[chuck-dev] string array problem(s)

Ge Wang gewang at CS.Princeton.EDU
Sat Nov 19 02:19:18 EST 2005


> This code throws a Bus error
>
> ["Sounds/ggg.snd", "Sounds/ddd.snd", "Sounds/bbb.snd"] @=> string 
> names[3];
>
> <<< names[0] >>>;

Oops... (also reproduced here, running OS X)

Quick workaround while we track down the real problem:

     [ "Sounds/ggg.snd", "Sounds/ddd.snd", "Sounds/bbb.snd" ] @=> string 
names[];

     <<< names[0] >>>;

Should we outlaw @=> string name[3], since the [3] doesn't do anything 
since the
names reference is going to get overwritten anyway in the @=> 
assignment?

Best,
Ge!



More information about the chuck-dev mailing list