Collection>>noneSatisfy:
Andrew C. Greenberg
werdna at mucow.com
Fri Oct 26 20:21:11 UTC 2001
Where is that ANSI validation suite when you need it?
On Friday, October 26, 2001, at 03:20 PM, Paul Davidowitz wrote:
> Bug found in Collection>>noneSatisfy:
> See comment at end.
>
> Collection>>
> noneSatisfy: aBlock
> "Evaluate aBlock with the elements of the receiver.
> If aBlock returns false for all elements return true.
> Otherwise return false"
>
> self do: [:item | (aBlock value: item) ifTrue: [^ false]].
> ^ false "####### SHOULD BE true #######"
>
> ============
> - Paul Davidowitz
> 4pjd at iname.com
>
>
More information about the Squeak-dev
mailing list
|