[squeak-dev] Dictionary>>collect: returning OrderedCollection?

Andreas Raab andreas.raab at gmx.de
Thu Jun 12 21:21:54 UTC 2008


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