Dictionary>>#collect: should return a dictionary
Klaus D. Witzel
klaus.witzel at cobss.com
Wed Feb 14 21:53:29 UTC 2007
Hi Math,
on Wed, 14 Feb 2007 22:41:53 +0100, you wrote:
> Yes of course so how to get the same behavior? provide a new method in
> Dictionary?
If it where easy (with regards to existing, most likely unloaded packages)
I would have made a suggestion.
Perhaps you add it under #dictionaryCollect: so that people can use it if
wanted.
I agree with Alan about ANSII but, this is not compatible with the
received Squeak releases.
Furthermore, there is a discrepancy between Dictionary>>#select: and
Dictionary>>#collect: :(
/Klaus
> Math
>
> On Feb 14, 2007, at 10:17 PM, Klaus D. Witzel wrote:
>
>> Hi Math,
>>
>> on Wed, 14 Feb 2007 21:48:21 +0100, you wrote:
>>> Hi,
>>>
>>> Looking at Dictionary>>#collect: I am wondering why it don't return a
>>> Dictionary.
>>
>> This is so since SqueakV1.sources. In SmalltalkV2.sources (ST80) it
>> returned a Bag. Both the latter and your variant are damned *slow*.
>>
>>> So I give you the test and fix.
>>
>> Have you considered all the packages which perhaps depend on the
>> current, speedy implementation?
>>
>> /Klaus
>>
>>> I didn't test the side effect.
>>>
>>> HTH
>>> Math
>>
>>
>>
>
>
>
More information about the Squeak-dev
mailing list
|