Fellow ChucKists,
I believe the code below demonstrates at least one bug that's keeping Mike from enjoying his spaghetti. There are definitely more related issues here but this is one. Appended non-primitive array locations can't be assigned to; clearly these are somehow different from array locations created when the array was created. Not creating a explicit "new" instance and instead appending a different instance directly also leads to reference issues, quite probably these are related.
=================================
class Foo
{
int value;
}
Foo foo[8];
Foo bar;
bar @=> foo[7];
foo << new Foo;
<<<"all is fine so far", "">>>;
Foo baz;
<<<"everybody crash ChucK tonight", "">>>;
baz @=> foo[8];
================================
Yours,
Kas.