[Cuis] Block Arguments
Dan Norton
dnorton at mindspring.com
Fri Jul 17 09:57:34 CDT 2015
On 16 Jul 2015 at 22:11, Phil (list) wrote:
> On Thu, 2015-07-16 at 21:43 -0400, Dan Norton wrote:
> > Hi Juan,
> >
> >
> > On windows, when the attached class method is added to StrikeFont
> and
> > cmd-d is done on the comment, it produces:
> >
> >
> > 'Error: This block accepts 0 arguments, but was called with 1
> > argument.'
> >
> >
> > AFAIKT it is not passing any arguments and the files do exist.
> Maybe a
> > bug?
> >
> But it is passing an argument to your ifExistsDo: block (the
> filestream)
> and your block doesn't accept any. If you don't care about the
> filestream, change your blocks to [:filestream| {baseName. ' OK'}
> print]
> etc. and ignore the parameter.
>
Ahh, now I see it. Interesting. Thanks, Phil.
- Dan
More information about the Cuis
mailing list