[squeak-dev] The Trunk: VersionNumber-eem.5.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Mon Nov 7 06:44:00 UTC 2022


> e.g. 1.8 is clearly less than 1.7.4

Eh, no it is not? If less means older here ...

Best,
Marcel
Am 05.11.2022 21:36:40 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Eliot Miranda uploaded a new version of VersionNumber to project The Trunk:
http://source.squeak.org/trunk/VersionNumber-eem.5.mcz

==================== Summary ====================

Name: VersionNumber-eem.5
Author: eem
Time: 5 November 2022, 1:36:25.499057 pm
UUID: 8883b385-6d1b-4659-b488-c677c700707a
Ancestors: VersionNumber-cmm.4

Fix VersionNumber>>

=============== Diff against VersionNumber-cmm.4 ===============

Item was changed:
----- Method: VersionNumber>>

+ "Answer whether the receiver is less than the argument, another VersionNumber."
- "Answer whether the receiver is less than the argument."

+ | tmp thisSize thatSize this that |
- | tmp |
- (self inSameBranchAs: another) ifFalse:
- [^self error: 'Receiver and argument in different branches'].
-
tmp := another numbers.
+ thisSize := numbers size.
+ thatSize := tmp size.
+ 1 to: (thisSize min: thatSize) do:
+ [:i|
+ (this := numbers at: i) = (that := tmp at: i) ifFalse:
+ [^this
+ ^thisSize
- (tmp size = numbers size) ifTrue:
- [1 to: numbers size do:
- [ :in | (numbers at: in)
- ^false].
-
- ^numbers size
- !


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20221107/f242e957/attachment.html>


More information about the Squeak-dev mailing list