[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lambda (was Re: special forms, take two (was Re: A lua version of "amb"))
- From: Tony Finch <dot@...>
- Date: Thu, 1 Mar 2012 14:02:16 +0000
Mark Hamburg <mark@grubmah.com> wrote:
>
> What if the lightweight syntax didn't support functions with upvalues?
> One could still reference globals, but a reference to a lexically bound
> but non-local variable would be an error in a lambda expression,
> whatever the syntax.
Note: in 5.2 _ENV is an upvalue; forbidding upvalues also forbids globals.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
Fisher: West or southwest, veering east or northeast, 4 or 5, decreasing 3 at
times. Slight or moderate. Fog patches. Moderate, occasionally very poor.