<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 11, 2014 at 6:40 PM, Florin Mateoc <span dir="ltr">&lt;<a href="mailto:florin.mateoc@gmail.com" target="_blank">florin.mateoc@gmail.com</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 text="#000000" bgcolor="#FFFFFF"><div class="im"><div><span style="color:rgb(34,34,34)">No, by following the proxy&#39;s nextObject, we start iterating a
    different loop than the original one (constituted by the bunch of
    objects just created, the proxy being the oldest in the bunch) until
    we reach the newest one among them, which will return 0.</span></div></div></div></blockquote><div><br></div><div>I&#39;m pretty sure there&#39;s just one loop. #allObjectsDo has one #whileFalse: message, and it keeps iterating until we reach 0. </div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><div class="im"><div><span style="color:rgb(34,34,34)">The sentinel is there because, even if only one block activation is
    created, we do not want to include it in the iteration, otherwise a
    check for 0 would be good enough.</span></div></div></div></blockquote><div><br></div><div>According to the comment Andreas wrote, the sentinel is there to prevent an infinite loop. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="im"><div><span style="color:rgb(34,34,34)">If you open code the loop (say [(next := next nextObject) ~= 0]
    whileTrue: [...loop body...]) there is no block activation, so a
    check for 0 would be enough (if we don&#39;t otherwise create new
    objects).</span><br></div></div></div></blockquote><div><br></div><div> There *is* a block activation, because the loop body sends #value: to aBlock.</div><div><br></div><div>Colin</div></div></div></div>