Feb. 20, 2013
12:49 a.m.
On Tue, Feb 19, 2013 at 3:28 PM, Frank Shearar <frank.shearar@gmail.com>wrote: <snip>
It is indeed strange behavior, but I think we inherited that from squeak.
No, Squeak has (since 2005) had still another behaviour:
';;;;' subStrings: ';' '1;2;3' subStrings: ';' #('1' '2' '3')
(Note the ';' rather than $;, because Squeak's version takes a String of separators.)
frank
Yes, but it still has the odd behavior: ';;;;' subStrings: ';' => $( ) '1;2;;3' subStrings: ';' => #('1' '2' '3') And the separators don't have to be strings - they can be any collection of characters. Chris