<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 5, 2014 at 1:06 PM, 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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
<br>
On 05-01-2014, at 1:01 PM, Nicolas Cellier &lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt; wrote:<br>
<br>
&gt; ? so the goal was not to limit dx2 and dy2 in interval [-2.0,2.0] ?<br>
<br>
Uuuh… maybe. It really doesn’t matter much since the prim isn’t used, but I suppose it ought to be correct<br></blockquote><div><br></div><div>But the correct code would indeed be</div><div><br></div><div><span class="" style="white-space:pre">(a)                                        </span>(dx2 &lt; -2) ifTrue: [dx2 := -2].</div>
<div><span class="" style="white-space:pre">                                        </span>(dx2 &gt;  2) ifTrue: [dx2 := 2].</div><div><span class="" style="white-space:pre">                                        </span>(dy2 &lt; -2) ifTrue: [dy2 := -2].</div><div><span class="" style="white-space:pre">                                        </span>(dy2 &gt;  2) ifTrue: [dy2 := 2].</div>
<div> </div><div>*not*</div><div><div><span class="" style="white-space:pre">(b)                                        </span>(dx2&lt;2) ifTrue: [dx2 := -2].</div><div><span class="" style="white-space:pre">                                        </span>(dx2&gt;2) ifTrue: [dx2 := 2].</div>
<div><span class="" style="white-space:pre">                                        </span>(dy2&lt;2) ifTrue: [dy2 := -2].</div><div><span class="" style="white-space:pre">                                        </span>(dy2&gt;2) ifTrue: [dy2 := 2].</div></div><div><br></div><div>i.e. the problem is just that dx2&lt;-2 is ambiguous, it could mean dx2 &lt;- 2 (new binary selector rules) or dx2 &lt; -2 (the intended).  I juts committed your fix but I think it&#39;s wrong.  It should be (a).  I&#39;m going to change it.  Forgive me :-)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
Strange OpCodes: IAM: Increase Amperage Above Maximum<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>