allows different objects to be compared, based on the spaceship operator being available

Mimics
Inactive cells
Active cells
Specs
Inactive cells (details)
kind = "Mixins Comparing"
Active cells (details)
!=(other)

return true if the receiver is not equal to the argument, otherwise false

method(other, 
  !((<=>(other)) ==(0)))
<(other)

return true if the receiver is less than the argument, otherwise false

method(other, 
  (<=>(other)) ==((0 -(1))))
<=(other)

return true if the receiver is less than or equal to the argument, otherwise false

method(other, 
  result = (<=>(other)) 
  result &&(result !=(1)))
<=>(other)

should be overridden - will result in an inconsistent ordering by always returning -1 except when comparing to itself, and then it will return 0

method(other, 
  if(cell(:other) kind ==("Mixins Comparing"), 
    0, 
    (0 -(1))))
==(other)

return true if the receiver is equal to the argument, otherwise false

method(other, 
  (<=>(cell(:other))) ==(0))
>(other)

return true if the receiver is greater than the argument, otherwise false

method(other, 
  (<=>(other)) ==(1))
>=(other)

return true if the receiver is greater than or equal to the argument, otherwise false

method(other, 
  result = (<=>(other)) 
  result &&(result !=((0 -(1)))))
(other)

nil

method(other, 
  !((<=>(other)) ==(0)))
(other)

nil

method(other, 
  result = (<=>(other)) 
  result &&(result !=(1)))
(other)

nil

method(other, 
  result = (<=>(other)) 
  result &&(result !=((0 -(1)))))