[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lexical environments in 5.2
- From: Doug Rogers <doug.rogers@...>
- Date: Thu, 07 Jan 2010 13:02:00 -0500
Roberto Ierusalimschy 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>.
> Modules can be written as "in module(...) do <body> end", with the
> module function returning the module table.
Cool! Did I miss a discussion of this earlier (other than various
proposals for 'with')? It's not mentioned on [1], so I added it,
guessing that your message will be msg00169.
Has anyone written a patch for 5.1.4 that will provide this feature? Or
a Metalua or token filter front-end?
[1] http://lua-users.org/wiki/LuaFiveTwo
Doug
______________________________________________________________________________________
The information contained in this email transmission may contain proprietary and business
sensitive information. If you are not the intended recipient, you are hereby notified that
any review, dissemination, distribution or duplication of this communication is strictly
prohibited. Unauthorized interception of this e-mail is a violation of law. If you are not
the intended recipient, please contact the sender by reply email and immediately destroy all
copies of the original message.
Any technical data and/or information provided with or in this email may be subject to U.S.
export controls law. Export, diversion or disclosure contrary to U.S. law is prohibited.
Such technical data or information is not to be exported from the U.S. or given to any foreign
person in the U.S. without prior written authorization of Elbit Systems of America and the
appropriate U.S. Government agency.
- References:
- Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Patrick Donnelly
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Mark Hamburg
- Re: Lua registry, environment, and threads., Patrick Donnelly
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy