<div>Commit 83f4ea appears to have implemented return values from loop</div><div>expressions, which is great and something I've wanted for a long time.</div><div>But there seems to be a bug insofar as the return values never</div>
<div>actually get returned:</div><div><br></div><div>An example is this FOR loop - foo() should return 40 but returns NaN (10 * null) instead:</div><div><br></div><div><div>(defun foo ()</div><div> (* 10 (for ((i 0)) ((< i 10)) ((incf i))</div>
<div> (when (> i 3)</div><div> (return i)))))</div></div><div><br></div><div>=></div><div><br></div><div><div>function foo() {</div><div> return 10 * (function () {</div><div> var loopResultVar6945 = null;</div>
<div> for (var i = 0; i < 10; ++i) {</div><div> if (i > 3) {</div><div> loopResultVar6945 = i;</div><div> break;</div><div> };</div><div> };</div><div>
loopResultVar6945;</div><div> })();</div><div>};</div></div><div><br></div><div>I get the same result using the LOOP macro, and WHILE loops have the same problem.</div><div><br></div><div>Daniel</div><div><br>
</div>