[ANSI-Smalltalk] Re: A list of interesting methods, ifNotNil:

Paolo Bonzini bonzini at gnu.org
Mon Sep 29 06:26:09 BST 2008


> I'd much rather be arguing about whether to have #timesRepeat: in
> the standard.  It's there on page 20 as one of the restricted
> selectors, but it isn't mentioned anywhere else at all.  Would it
> not be nice to add
> 
> Protocol <integer>
> 
> #.#.#.# Message: timesRepeat: operation
> Synopsis
>     Repeat an operation with no argument some number of times.
> Definition: <integer>
>     If the receiver is negative or zero, do nothing.
>     If the receiver is positive, evaluate operation that
>     many times with no argument.
> Parameters:
>     operation <niladicBlock> unspecified
> Return Values
>     UNSPECIFIED
> Errors
>     none

Yes, I think so.

Paolo



More information about the ANSI-Smalltalk mailing list