Thanks for your reply, the alternative's nice but I feel it kind of defeats the purpose. I wanted the make-getter to be of factory so that the returned function would be a simple variable definition sort of like the classical make-adder function.<div>
<br><div>Anyway, it was more of a curiosity; no big deal. </div><div><div><br></div><div><br><div class="gmail_quote">On Wed, Feb 10, 2010 at 8:26 AM, Jon Zeppieri <span dir="ltr"><<a href="mailto:zeppieri@gmail.com">zeppieri@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></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div>Lazy evaluation doesn't violate lexical scope (and that's a good thing). In other words, *when* the expression is evaluated has nothing to do with the binding environment in which it's evaluated. The latter is determined by inspecting the syntax of the program, rather than by trying to trace its run-time behavior.</div>
<div><br></div><div> -Jon</div><div><br></div></div>
</blockquote></div><br></div></div></div>