lua-users home
lua-l archive

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


On Sat, Jun 21, 2014 at 11:51 AM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:

> In Lua, assignment is *not* an expression, unlike in C.
> Expressions are listed here and do not include assignments:
>         http://www.lua.org/manual/5.2/manual.html#3.4
>

setmetatable(_ENV, { __newindex = function (s, k, v) s[k] = v return v
end }) -- I like to dreaam!