So am I right in thinking that if I get newCompiler, blocks will work as I would expect them to (like lambdas)?<br><br>If so, how do I get the most recent version? I remember there being something that has superceded squeakmap, but I can&#39;t seem to find it.
<br><br><div class="gmail_quote">On Jan 22, 2008 11:42 PM, Ben Goetter &lt;<a href="mailto:goetter@mazama.net">goetter@mazama.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">&gt;This is a maintenance nightmare waiting to happen. &nbsp;Use a proper method call,<br><br></div>Squeak Smalltalk blocks are just similar enough to Scheme lambdas that I still fall into this trap, too.<br>
<br>(letrec ((carre (lambda (s1 s2 s3 s4 n)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (if (&gt; n 0)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(carre (segment s1 s2)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (segment s2 s3)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (segment s3 s4)<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (segment s1 s4)
<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (- n 1))))))<br>&nbsp;&#39;oops-must-remember-this-is-Squeak-not-Scheme)<br><font color="#888888"><br>Ben<br></font><div><div></div><div class="Wj3C7c">_______________________________________________
<br>Beginners mailing list<br><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners
</a><br></div></div></blockquote></div><br>