lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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/