<div dir="ltr">Hm, <div><div>I think you can forget this mail.</div><div>This was yet another <span style="color:rgb(84,84,84);line-height:29.9040012359619px">PEBCAK</span>.</div></div><div><br></div><div>Karl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 30, 2015 at 2:02 PM, Eliot Miranda <span dir="ltr">&lt;<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Shurley shome mishtake, hic!  The block clearly has 2 arguments and is called with one, and the print block prints &quot;N arguments&quot; for anything other than 1, so how does the error message come out as you report??<br>
<br>
Eliot (phone)<br>
<div class="HOEnZb"><div class="h5"><br>
On Apr 30, 2015, at 3:25 AM, karl ramberg &lt;<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>&gt; wrote:<br>
<br>
&gt; #(1 2) do:[:a :b| b] &quot;do it&quot;<br>
&gt;<br>
&gt; Error: &#39;This block accepts 2 argument, but was called with 1 arguments.&#39;<br>
&gt;<br>
&gt; Should not the numArgs and the numArgsForInvocation switch place here ?<br>
&gt;<br>
&gt; BlockClosure&gt;&gt;numArgsError: numArgsForInvocation<br>
&gt;<br>
&gt;       | printNArgs |<br>
&gt;       printNArgs := [:n| n printString, &#39; argument&#39;, (n = 1 ifTrue: [&#39;&#39;] ifFalse:[&#39;s&#39;])].<br>
&gt;       self error:<br>
&gt;                       &#39;This block accepts &#39;, (printNArgs value: numArgs),<br>
&gt;                       &#39;, but was called with &#39;, (printNArgs value: numArgsForInvocation), &#39;.&#39;<br>
&gt;<br>
<br>
</div></div></blockquote></div><br></div>