lua-users home
lua-l archive

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


2014-04-09 11:01 GMT+02:00 Thomas Jericke <tjericke@indel.ch>:

> local a, b, c = a, b, c in expression
> --expands to
> local temp_table = expression -- extra local needed
> local a, b, c = temp_table.a, temp_table.b, temp_table.c

local a, b, c = a, b, c in expression
-- expands to
local a, b, c
do
   local temp_table = expression -- extra local will be released soon
   a, b, c = temp_table.a, temp_table.b, temp_table.c
end