[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Language Syntax
- From: Coroutines <coroutines@...>
- Date: Sat, 21 Jun 2014 13:19:32 -0700
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!