[squeak-dev] Dictionary>>collect: returning OrderedCollection?
Joerg Beekmann
Joerg at deepcovelabs.com
Fri Jun 13 17:52:51 UTC 2008
I believe ANSI says it should be a dictionary. VW has just changed their
implementation in version 7.6 to return a Dictionary.
-----Original Message-----
From: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] On Behalf Of
Andreas Raab
Sent: Thursday, June 12, 2008 2:22 PM
To: The general-purpose Squeak developers list
Subject: [squeak-dev] Dictionary>>collect: returning OrderedCollection?
Hi -
Just got bitten by the fact that Dictionary>>collect: returns an
OrderedCollection instead of a Dictionary. What I had expected was e.g.,
dict := Dictionary newFromPairs:{
#first. 1.
#second. 2.
#third. 3.
}.
dict collect:[:item| item asWords].
=> a Dictionary(#first->'one' #second->'two' #third->'three' )
but instead the result is an OrderedCollection('one' 'two' 'three').
Does anyone besides me consider this a bug? What does ANSI say about
this issue?
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|