[squeak-dev] The Inbox: System-cwp.662.mcz

Colin Putney colin at wiresong.com
Sun Jan 12 18:40:40 UTC 2014


On Sun, Jan 12, 2014 at 12:44 PM, Bert Freudenberg <bert at freudenbergs.de>wrote:


> Me too. We want to enumerate all objects *created until* sending
> #allObjectsDo.
>

We do? Why? It seems to me that it's better to know, when the loop is
finished, that we've seen all objects in the image. If we're looking for
certain kinds of objects, (e.g., obsolete behaviours) we know that we've
found them all.

Sure, the implementation I posted has tradeoffs. There's the risk of
creating an infinite loop, either because of block contexts being created
on older VMs, or because the caller creates new objects faster than we can
enumerate them. If you're arguing that enumerating only existing objects is
an acceptable way to mitigate that risk, ok, that's a valuable viewpoint.

But all other things being equal, I don't see why we'd prefer to enumerate
only existing objects.

Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140112/c7348e04/attachment.htm


More information about the Squeak-dev mailing list