The standard does *not* support - a removeAll: a - [was: Re: [BUG] Collection>>removeAll:]

Andrew C. Greenberg werdna at mucow.com
Thu Sep 12 00:56:32 UTC 2002


On Wednesday, September 11, 2002, at 07:31 PM, Lex Spoon wrote:

> "Richard A. O'Keefe" <ok at cs.otago.ac.nz> wrote:
> [... inline the assertions, too ...]
>
> That's an interesting way to look at the situation, but do note that
> most Smalltalkers will be suprised to find those assertions or
> corrections in removeAll:.  Most fooAll: methods just do: on the
> argument and foo: each element, and have no particular protection
> against #foo: modifying the argument.

Which, of course, concedes the point that fooAll: methods entail an 
implied iteration on its parameter.

Q.E.D.




More information about the Squeak-dev mailing list