<div dir="ltr"><br><div class="gmail_quote">Stephen;<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Strangely, the following works fine. </blockquote>
<div><br>I&#39;m increasingly suspecting &quot;@&quot; is ChucKian for saying &quot;please&quot; :¬).<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&nbsp;Must mean it&#39;s a garbage<br>
collection issue, since in this case there remains in memory a<br>
reference to the new Foo. </blockquote><div><br>I&#39;m not surprised about that at all considering the error message talks about a reference count and Ge has mentioned using those for garbage collection.<br><br>Great, so now we do have at least some garbage collection, even if it&#39;s not working perfectly yet. That&#39;s at least a silver lining.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;If you add &quot;baz @=&gt; f;&quot; to the end of this<br>
script, it crashed, which proves it.<br>
</blockquote><div><br>Ok.... but I&#39;d say that line should be valid as there *is* a rather clear reference to &quot;f&quot;. This is kept track of as well because appending the file with &quot;int f;&quot; instead will give a (correct) complaint about &quot;f&quot; already having been defined in this scope. I can understand there being some bug left in the initialisation of apended array locations as those are new but calling a instance &quot;f&quot; is not new at all. It seems like there is something going wrong with the reference count in assignment as well or instead.<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
</div>new Foo @=&gt; Foo @f;<br>
foo &lt;&lt; f;<br></blockquote><div><br>Lovely. I&#39;ll take this to Mike&#39;s &quot;spaghetti&nbsp; with spicy bug-sauce&quot; and see how far that gets us.<br><br>It&#39;s kinda ironical how civilisation has gotten us to the point where we can debate programing languages internationally over a electronic network yet we are still forced to organise hunting parties. Nice catch you got there.<br>
</div></div><br>Cheers,<br>Kas.<br></div>