<div dir="ltr">Evaluation is always separated between procedure calls though, so the undefined order only regards specifically the order in which the operator and arguments are evaluated, right?<div><br></div><div>(</div><div>E.g.:</div><div><br></div><div>For the code (A (B C D) (E F G)), let's call (B C D) X1 and (E F G) X2, here: While the evaluation order within the block B C D, and within the block E F G, and within the block A X1 X2, is undefined, the internal evaluation of X1 and X2 is never mixed so that you'd get an evaluation order B to F to D, right?</div><div><br></div><div>Any mix where A, X1, X2 are kept separate could happen thoug, e.g. A, C, B, D, F, E, G or F, E, G, D, B, C, A.</div><div>)<br><div class="gmail_extra"><br><div class="gmail_quote">2017-11-14 10:03 GMT+08:00 Marc Feeley <span dir="ltr"><<a href="mailto:feeley@iro.umontreal.ca" target="_blank">feeley@iro.umontreal.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Left as an exercice to the reader…<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Marc<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
<br>
> On Nov 13, 2017, at 10:37 AM, Adam <<a href="mailto:adam.mlmb@gmail.com">adam.mlmb@gmail.com</a>> wrote:<br>
><br>
> Wow.<br>
><br>
> Can you give an actual code exampe where compiled (or interpreted) code not does left to right?<br>
><br>
> I think all I observed in practice in the past was left to right.<br>
><br>
> Adam<br>
><br>
><br>
> 2017-11-13 21:45 GMT+08:00 Marc Feeley <<a href="mailto:feeley@iro.umontreal.ca">feeley@iro.umontreal.ca</a>>:<br>
> Execution order is arbitrary.  The interpreter and compiler don’t use the same ordering.  The interpreter tends to be mostly left-to-right, but don’t count on it.<br>
><br>
> Marc<br>
><br>
><br>
><br>
> > On Nov 12, 2017, at 4:19 PM, Adam <<a href="mailto:adam.mlmb@gmail.com">adam.mlmb@gmail.com</a>> wrote:<br>
> ><br>
> > Hi Marc!<br>
> ><br>
> > Does Gambit evaluate left-to-right order always or only generally?<br>
> ><br>
> > Thanks,<br>
> > Adam<br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div></div></div>