<br><div class="gmail_quote">On Tue, Jul 5, 2011 at 2:25 PM, Ketan Maheshwari <span dir="ltr"><<a href="mailto:ketancmaheshwari@gmail.com">ketancmaheshwari@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jul 5, 2011 at 2:09 PM, Ben Clifford <span dir="ltr"><<a href="mailto:benc@hawaga.org.uk" target="_blank">benc@hawaga.org.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
> The first instance 'until' i gets greater than 2 is when it gets 3. With<br>
> this regard, I think trace could go ahead and show the value of i but<br>
> somehow no other statement should get evaluated in that iteration.<br>
<br>
</div>I think that's crazy: either the body gets executed or it doesn't get<br>
executed. trace should not be a 'special statement' that enclosing control<br>
structures need to know about that is distinct from a regular swift<br>
function call. its also crazy to have trace showing that the body was<br>
entered and executed when it wasn't. "I can't see whats going wrong: trace<br>
tells me that this loop iteration happens, but its as if the rest of the<br>
body doesn't happen..."<br></blockquote></div></div><div><br>trace could be made a debug-level statement and can represent a "visual" debugging tool in a script-based programming paradigm. <br></div></div>
</blockquote><div><br>Furthermore, a debug-level trace could be useful applied to arrays:<br><br>foreach anelement, idx in anarray{<br>res[ix] = some_func(anelement);<br>trace(anarray);<br>}<br><br>Making trace(anarray) print the "end-of-array:anarray" without really executing some_func could be a useful debugging tool.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<font color="#888888"><br>
--<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><font color="#888888">Ketan<br><br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ketan<br><br><br>