[squeak-dev] The Trunk: Monticello-eem.763.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Dec 30 20:02:56 UTC 2021
Eliot Miranda uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-eem.763.mcz
==================== Summary ====================
Name: Monticello-eem.763
Author: eem
Time: 30 December 2021, 12:02:50.794873 pm
UUID: 05d83387-607f-405a-b895-891651a739a1
Ancestors: Monticello-mt.762
MCPatchOperation's subclasses implementations of #= prevent comparison with arbitr5ary objects. Add Object>>isMCPatchOperation and use it in the #= implementations. Sp now one can do e.g.
SequenceableCollection allSubInstances select: [:s| s isCompiledCode not and: [(s indexOfSubCollection: #(2 2 2 2 3 2 2 1 1 1 2 3 3 3 3 4)) > 0]]
without error.
=============== Diff against Monticello-mt.762 ===============
Item was changed:
----- Method: MCAddition>>= (in category 'comparing') -----
= other
+ ^other isMCPatchOperation
+ and: [other isAddition
+ and: [definition = other definition]]!
- ^ other isAddition and: [definition = other definition]!
Item was changed:
----- Method: MCModification>>= (in category 'comparing') -----
= other
+ ^other isMCPatchOperation
+ and: [other isModification
+ and: [obsoletion = other obsoletion
+ and: [modification = other modification]]]!
- ^ other isModification
- and: [obsoletion = other obsoletion
- and: [modification = other modification]]!
Item was added:
+ ----- Method: MCPatchOperation>>isMCPatchOperation (in category 'testing') -----
+ isMCPatchOperation
+ ^true!
Item was changed:
----- Method: MCRemoval>>= (in category 'comparing') -----
= other
+ ^other isMCPatchOperation
+ and: [other isRemoval
+ and: [definition = other definition]]!
- ^ other isRemoval and: [definition = other definition]!
Item was added:
+ ----- Method: Object>>isMCPatchOperation (in category '*Monticello-Patching-testing') -----
+ isMCPatchOperation
+ ^false!
More information about the Squeak-dev
mailing list
|