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