+1 So this is ok :) What I would love in my wildest dream is to have magnitude using TComparable :) But this may be too complex. I would like to have the time to check how we can make trait implementation leaner, smaller.....
Stef On Aug 30, 2010, at 12:11 PM, jaayer wrote: > > > ---- On Sun, 29 Aug 2010 07:28:19 -0700 Nicolas Cellier wrote ---- > >> I'm not comfortable with English, but to me Magnitude is about >> ordering rather than just comparing. >> I expect a TOrderable to describe a fully or partially ordered set. >> If you define this, then it is a fully ordered set: >> <= aMagnitude >> ^(self > aMagnitude) not >> >> Beware, due to introduction of NaN, Float is not fully ordered, this >> require overriding above message in Number. >> >> Nicolas > > Comparable has parallels in other languages like Java and C#'s Comparable and > IComparable interfaces. Also, one of its categories is "comparing." > > > _______________________________________________ > Pharo-project mailing list > Pharo-project@lists.gforge.inria.fr > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project