[prev in list] [next in list] [prev in thread] [next in thread]
List: squeak-dev
Subject: Comparing Fractions
From: sqrmax () cvtci ! com ! ar
Date: 1998-03-23 21:43:31
[Download RAW message or body]
Hi.
Fraction implements #<, but not #>. This results in super > and so... for
instance, what should take 15ms took about 2 minutes! Not funny at all! Check
implementing #> like, for instance, this:
#> aNumber
^(self < aNumber or: [self = aNumber]) not
The methods on #< and #= will take care of adapting and so.
Andres.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic