Status: NoSourcesAvailable
Owner:
[hidden email]
Labels: Milestone-1.4
New issue 4974 by
[hidden email]: better UUID comparison
http://code.google.com/p/pharo/issues/detail?id=4974< aMagnitude
"Answer whether the receiver is less than the argument."
(self size = aMagnitude size) ifFalse: [
^ self size < aMagnitude size ].
1 to: self size do: [:i |
(self at: i) = (aMagnitude at: i) ifFalse: [
^ (self at: i) < (aMagnitude at: i) ]].
^false.
+ test to be written
|a b|
a := UUID fromString: '0608b9dc-02e4-4dd0-9f8a-ea45160df641'.
b := UUID fromString: 'e85ae7ba-3ca3-4bae-9f62-cc2ce51c525e'.
(a > b) = (b > a)
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker