The first instance 'until' i gets greater than 2 is when it gets 3. With this regard, I think trace could go ahead and show the value of i but somehow no other statement should get evaluated in that iteration. This is justified imho since if one does manual tracing, it would go something like this:<br>
<br>i=0<br>i>2? No<br>---<br>i=1<br>i>2? No<br>---<br>i=2<br>i>2? No<br>---<br>i=3<br>i>2? Yes<br>---<br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 1:39 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov">hategan@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I have<br>
<br>
iterate i {<br>
  trace(i);<br>
} until (i > 2);<br>
<br>
I read that "until" as "the iteration body should not be run if i > 2",<br>
and yet trace goes up to 3. And I'm not sure if that's the right way to<br>
go.<br>
<br>
Discuss...<br>
<br>
_______________________________________________<br>
Swift-devel mailing list<br>
<a href="mailto:Swift-devel@ci.uchicago.edu">Swift-devel@ci.uchicago.edu</a><br>
<a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Ketan<br><br><br>