lua-users home
lua-l archive

Re: Lexical environments: follow-up

[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

AltStyle によって変換されたページ (->オリジナル) /