Re: upvalues actually are values?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: upvalues actually are values?
- From: Alex Queiroz <asandroq@...>
- Date: 2012年10月24日 10:13:30 +0200
On Wed, Oct 24, 2012 at 12:19 AM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
>>
>> Then you would be wrong. :P You can still consider it a closure if it
>> COPIES the scope instead of REFERENCES it. The ability to modify the
>> state of a closure after it's created isn't a requirement to the
>> definition of a closure.
>
> hum.... [citation needed] :-)
>
Javier is right. Proper lexical scoping means that the environment is
captured. Anything else is just an approximation.
--
-alex
http://www.artisancoder.com/