Dictionary>>#collect: should return a dictionary
Klaus D. Witzel
klaus.witzel at cobss.com
Wed Feb 14 22:14:02 UTC 2007
On Wed, 14 Feb 2007 22:57:01 +0100, Philippe Marschall wrote:
> 2007/2/14, Alan Lovejoy <squeak-dev.sourcery at forum-mail.net>:
>> <Mathieu Suen>
>> Looking at Dictionary>>#collect: I am wondering why it don't return a
>> Dictionary.
>> </Mathieu Suen>
>>
>> The ANSI Smalltalk Standard requires that Dictionary>>collect: answer a
>> new
>> Dictionary with the same keys, but whose values have been transformed
>> by the
>> transformer (the argument of the message.)
>
> GST does so. STX returns a Bag of the values transformed, VW returns
> an OrderedCollection of the values transformed.
ROTFL :) Long live language compatibility :)
So perhaps, VW ported code might break if Squeak adopted ANSI.
> Philippe
>
>> --Alan
>>
>>
>>
>>
>
>
More information about the Squeak-dev
mailing list
|