Does anybody use < to compare lookup keys?

nicolas cellier ncellier at ifrance.com
Mon Oct 8 22:58:29 UTC 2007


LookupKey as a descendant of Magnitude does implement <, suggesting the 
set of LookupKeys can be fully ordered.
(that's the logic behind Margnitude >=, <=, and >).

Though, you cannot compare arbitrary keys.
(1->nil) < (#a->nil). "false"
(#a->nil) < (1->nil). "MNU isBytes"
(Object new->nil) < (Object new ->nil). "MNU <"

So, is there any application of LookupKey < ?




More information about the Squeak-dev mailing list