lua-users home
lua-l archive

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




On 2018-03-13 05:13 PM, Roberto Ierusalimschy wrote:
What about:

a = 1
local a = 2
a = undef
assert(a == 1)?
A main motivation for the implementation was to allow people to
check the behavior by themselves. Run and see.

-- Roberto


I mean it's probably a syntax error but I mean can we get non-lexical variable scoping?

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.