[squeak-dev] The Inbox: Collections-mt.938.mcz
Levente Uzonyi
leves at caesar.elte.hu
Fri Apr 16 02:29:46 UTC 2021
That's only the case, because the 'normal' branch has been fixed back in
2009 (see Collections-nice.116) to use #grownBy: and therefore #ofSize:
instead of #new: to create the new instance of the underlying collection.
Yet, we still don't have a test case convering this unusual usage of
#streamContents:.
Levente
On Thu, 15 Apr 2021, tim Rowledge wrote:
> It's worth remembering that that nextPutAl: etc code is only causing a problem in the 'special fast case' branch. The 'normal' case would be to iterate on the parameter and #add: to the recipient. OrderedCollection does *that* ok. I must admit to never having looked at LinkedList>#add: ... yup that would be fine too. The only collection hierarchy class I see which doesn't like #add: is Matrix, and I'm not utterly sure that it ought to be under Collection
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- People around her are at risk of second hand idiocy.
More information about the Squeak-dev
mailing list
|