kind | = | "Mixins Comparing" |
allows different objects to be compared, based on the spaceship operator being available
return true if the receiver is not equal to the argument, otherwise false
[ show source ]
method(other, !((<=>(other)) ==(0)))
return true if the receiver is less than the argument, otherwise false
[ show source ]
method(other, (<=>(other)) ==((0 -(1))))
return true if the receiver is less than or equal to the argument, otherwise false
[ show source ]
method(other, result = (<=>(other)) result &&(result !=(1)))
should be overridden - will result in an inconsistent ordering by always returning -1 except when comparing to itself, and then it will return 0
[ show source ]
method(other, if(cell(:other) kind ==("Mixins Comparing"), 0, (0 -(1))))
return true if the receiver is equal to the argument, otherwise false
[ show source ]
method(other, (<=>(cell(:other))) ==(0))
return true if the receiver is greater than the argument, otherwise false
[ show source ]
method(other, (<=>(other)) ==(1))
return true if the receiver is greater than or equal to the argument, otherwise false
[ show source ]
method(other, result = (<=>(other)) result &&(result !=((0 -(1)))))