lua-users home
lua-l archive

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


On Thu, Jan 7, 2010 at 6:01 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> Lua 5.2 will have "lexical environments", a kind of lexical setfenv.
> The construction "in t do command end"  will execute <command> with
> all global variables being resolved in <t>.

So Lua gets a with statement ;) I remember from my Delphi days that
those things can get a bit out of control. Still, a very useful
construct.

steve d.