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

Tobias Pape Das.Linux at gmx.de
Sun Jan 12 18:45:11 UTC 2014


On 12.01.2014, at 19:40, Colin Putney <colin at wiresong.com> wrote:

> 
> 
> 
> 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.

Say you want to wrap every object in the system in a proxy.
You would need to use #allObjectsDo:. but when we enumerate all 
object, the new ones too, we end up having proxies for proxies for
proxies ad infinitum (endless non-loop…) and we can’t know it…


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1665 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140112/9d1a0a4f/signature.pgp


More information about the Squeak-dev mailing list