lua-users home
lua-l archive

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


The new "in" syntax could be implemented as follows, BTW

inside(table_,function()
       a = 1
       b=2
end)

function inside(table, f)
setfenv(f,table)
f()
end