[squeak-dev] The Inbox: Collections-dtl.821.mcz
Das.Linux at gmx.de
Sun Feb 17 15:58:04 UTC 2019
I like it. :)
> On 17.02.2019, at 00:18, commits at source.squeak.org wrote:
> David T. Lewis uploaded a new version of Collections to project The Inbox:
> ==================== Summary ====================
> Name: Collections-dtl.821
> Author: dtl
> Time: 16 February 2019, 6:18:27.925895 pm
> UUID: 9bfa29b3-5e9f-4c61-b19b-e0bb05403589
> Ancestors: Collections-nice.820
> Classes are expected to be unique in the system, but in some cases (e.g. Magma) it is also useful to expect a proxy for a class to test equivalent to the actual class. Therefore, in SequenceableCollection>>= use #= rather than #== for the class comparison.
> =============== Diff against Collections-nice.820 ===============
> Item was changed:
> ----- Method: SequenceableCollection>>= (in category 'comparing') -----
> = otherCollection
> "Answer true if the receiver is equivalent to the otherCollection.
> First test for identity, then rule out different class and sizes of
> collections. As a last resort, examine each element of the receiver
> and the otherCollection."
> self == otherCollection ifTrue: [^ true].
> + self class = otherCollection class ifFalse: [^ false].
> - self class == otherCollection class ifFalse: [^ false].
> ^ self hasEqualElements: otherCollection!
More information about the Squeak-dev