[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lexical environments: follow-up
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Sat, 6 Feb 2010 14:19:58 +0100
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