lua-users home
lua-l archive

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

> What is this construction??
>        local t,foo={},1

It is almost equivalent (some scoping differences) to:

local t = {}
local foo = 1

The "local" statement with assignment follows the same rules as
regular assignment, namely that you assign a list of values to a list
of variables. See the ref-manual, sections 2.4.3 and 2.4.7.