[FIX] BlockArgumentDescriptionFix ( do not accept )

Daniel Vainsencher danielv at netvision.net.il
Sun Sep 7 23:23:09 UTC 2003


Ingo Hohmann <uysl0l402 at sneakemail.com> wrote:
> How about: (sorted by decreasing length)
> 
> 'Number of supplied arguments does not match number of accepted arguments'
> 
> or
> 
> 'This block accepts X arguments, but is called with Y arguements'
My favorite - maximum info, minimal complication.

> 
> or
> 
> 'This block needs to accept X arguments'
> 
> or
> 
> 'This block is called with X arguments'
> 
> 
> > Mike Roberts <mike at mjr104.co.uk> wrote:
> > 
> >>Because the error you get is "This block requires 0 arguments" and I think, no it doesn't it needs 1.  This is one of the newbie things I do all the time.  I think I now see that the intent of the error, had I read the method comment correctly, is that the block you have given doesn't expect any arguments.  I always read the error as you don't need any arguments for the operation, and you do, you need 1 - but only do: knows this.
> > 
> > 
> >



More information about the Squeak-dev mailing list