<div dir="ltr">Hi Tim,<br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 10:30 AM, tim Rowledge <span dir="ltr">&lt;<a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
&gt; On 11-11-2015, at 7:47 AM, Chris Cunningham &lt;<a href="mailto:cunningham.cb@gmail.com">cunningham.cb@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;  immutablity - an immutable bitblit?<br>
<br>
exactly what I was thinking :-)<br>
<br>
A couple of other immutability thoughts;<br>
copying an imm. (I refuse to type it out every time) object - the copy primitive would need to clear the imm. bit unless we declare that a copy is also imm. In which case only ST code copying could be used to make non-imm. copies.<br>
we’re SOL anytime any external prim or call is passed the guts of an imm. object.<br></blockquote><div><br></div><div>It is most important that the copy of an immutable object is /not/ immutable because otherwise its extremely clumsy to use immutable literals.  For example where you see</div><div><br></div><div>    WriteStream on: &#39;&#39; </div><div><br></div><div>(which is of course a bug) this will no loner work with immutable literals and needs to be rewritten.  If copy yields a mutable object were can write</div><div><br></div><div>    WriteStream on: &#39;&#39; copy</div><div><br></div><div>Chris, BitBlt should /fail/ if it attempts to write into an immutable destination.  Just because it&#39;s BitBlt doesn&#39;t give it the right to write to a read-only object, right?</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" rel="noreferrer" target="_blank">http://www.rowledge.org/tim</a><br>
A hacker does for love what others would not do for money.<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>