On Thu, 21 Apr 2005 11:11:39 +0100, "Chris Uppal"
<
[hidden email]> wrote:
>I don't much care whether such expressions are supposed to produce errors or
>not, but I'm working on a String-like class and would like to emulate the
>/intended/ behaviour as far as possible, rather than the actual behaviour
>(which may be buggy). Especially as the actual behaviour is rather awkward to
>emulate ;-)
I guess the only way would be to check the ANSI standard, wherever it
is available. I tried it on Squeak, and got a similar behavior.
The behavior that would make sense to me woul be the equivalent to:
'aaa' asOrderedCollection collect: [:char| char codePoint]
'assf' asOrderedCollection associations
Or asArray.