Does anybody use < to compare lookup keys?

Jerome Peace peace_the_dreamer at yahoo.com
Fri Oct 26 03:36:44 UTC 2007


Does anybody use < to compare lookup keys?

Hi Nicolas, 

Probably everybody.

<list of associations> asSortedArray 

for example. 

The problem is at the String >>#< level

both 
#a < 1 
and 
#a < #1 
cause errors.

The argument needs to be treated more polymorphicly
(adapt to string and send type stuff ) and this ought
be a mantis item.

Cheers.

Hth, 

Yours in curiosity and service, -Jerome Peace


***
>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 < ?
***



-

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the Squeak-dev mailing list