Bug after string refactoring

Martin Wirblat sql.mawi at t-link.de
Mon Apr 18 13:10:24 UTC 2005


I just checked other Smalltalks

            Dolphin  VSE      VW      NewSqueak  OldSqueak
'A' < 'b'  true     true     true    true       true
'a' < 'B'  true     true     true    true       false
'a' <= 'A' true     true     false   false      false
'A' <= 'a' true     true     true    true       true
'Az'<'aa'  false    false    false   true       true
'A' = 'a'  false    false    false   false      false

VW does it best. VSE and Dolphin do it like I proposed, or whatsoever 
that was.

(self compare: aString caseSensitive: false) for #< #<= #> #>=
(self compare: aString caseSensitive: true) for #=

Given that the current Squeak sorting is still funny ('Az' < 'aa')
and Dolphin and VSE seem not worried about logical implications like

  'A'<='a' and 'a'<='A' must that mean that 'A'='a' ??

perhaps an interesting alternative?




More information about the Squeak-dev mailing list