<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 12, 2014 at 12:44 PM, Bert Freudenberg <span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span> wrote:<br>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Me too. We want to enumerate all objects *created until* sending #allObjectsDo.<br>
</div></blockquote><div><br></div><div>We do? Why? It seems to me that it&#39;s better to know, when the loop is finished, that we&#39;ve seen all objects in the image. If we&#39;re looking for certain kinds of objects, (e.g., obsolete behaviours) we know that we&#39;ve found them all.</div>
<div><br></div><div>Sure, the implementation I posted has tradeoffs. There&#39;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&#39;re arguing that enumerating only existing objects is an acceptable way to mitigate that risk, ok, that&#39;s a valuable viewpoint. </div>
<div><br></div><div>But all other things being equal, I don&#39;t see why we&#39;d prefer to enumerate only existing objects.</div><div><br></div><div>Colin</div><div><br></div></div></div></div>