2015-07-20 22:11 GMT+02:00 Jan Kurš <[email protected]>: > Hey All, > > The collect: on IdentitySet returns Set. Is this really wanted behaviour > or is it a bug? >
There was a long discussion about this http://forum.world.st/IdentitySet-collect-tp4792384.html and I thought this was fixed issue 14535 > > For example: > > set := IdentitySet with: 'foo' with: 'bar'. > newSet := set collect: [:e | #size -> e size ]. > > This two assertions do not pass: > self assert: newSet size == 2. > self assert: newSet class == IdentitySet > > Surprisingly (for me), if I change the implementation of collect: to use > self species new instead of: Set new, the Pharo becomes really > unresponsive... > > Cheers, Jan >
