[squeak-dev] The Trunk: System-cwp.660.mcz

Bert Freudenberg bert at freudenbergs.de
Sat Jan 11 17:35:41 UTC 2014


On 11.01.2014, at 18:11, Florin Mateoc <florin.mateoc at gmail.com> wrote:
> I would think that materializing proxies or otherwise creating new objects within an allObjectsDo: loop is a bug

Agreed.

> , just as it usually is whenever one grows a collection while iterating over it. It is the responsibility of the caller to
> ensure that this does not happen.
> Here the bug would be in #obsoleteBehaviors, which should install a copy of #isBehavior in ProtoObject before the loop
> and remove it afterwards (or ProtoObject should just implement it)

Or maybe it should use #isInMemory to only check the objects in memory.

- Bert -




More information about the Squeak-dev mailing list