<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 1/11/2014 4:26 PM, Colin Putney
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAD+=c1gzxM18Q0mA1HpdngHFh+r2_wj4JtpXpjgRg4mfeM-sTQ@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <br>
          <div class="gmail_quote">On Sat, Jan 11, 2014 at 12:05 PM,
            Bert Freudenberg <span dir="ltr">&lt;<a
                moz-do-not-send="true"
                href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>&gt;</span>
            wrote:<br>
            <div>&nbsp;</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">... which is when you
                got the 0. Or are you asking why we need the sentinel?
                Because&nbsp;if aBlock keeps allocating objects, we would
                never reach the end.<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>According to the comment in #allObjectsDo: we need the
              sentinel because the *execution* of aBlock will allocate
              an object - the activation context. So regardless of what
              aBlock actually does, we need the sentinel to avoid an
              infinite loop.</div>
            <div><br>
            </div>
            <div>However, this bug causes the loop to skip over the
              sentinel. If the comment is right, we should end up in an
              infinite loop. But we don't, we eventually get 0. Why?</div>
            <div><br>
            </div>
            <div>Colin&nbsp;</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
    It does not skip over the sentinel. It encounters the "end" earlier
    because you create a new object after the sentinel was created.<br>
    If you do Object new nextObject you get 0. So when the proxy is
    materialized and then gets sent nextObject it returns 0<br>
    <br>
    Florin<br>
  </body>
</html>