<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"><<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>></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 "N arguments" 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 <<a href="mailto:karlramberg@gmail.com">karlramberg@gmail.com</a>> wrote:<br>
<br>
> #(1 2) do:[:a :b| b] "do it"<br>
><br>
> Error: 'This block accepts 2 argument, but was called with 1 arguments.'<br>
><br>
> Should not the numArgs and the numArgsForInvocation switch place here ?<br>
><br>
> BlockClosure>>numArgsError: numArgsForInvocation<br>
><br>
> | printNArgs |<br>
> printNArgs := [:n| n printString, ' argument', (n = 1 ifTrue: [''] ifFalse:['s'])].<br>
> self error:<br>
> 'This block accepts ', (printNArgs value: numArgs),<br>
> ', but was called with ', (printNArgs value: numArgsForInvocation), '.'<br>
><br>
<br>
</div></div></blockquote></div><br></div>