Re: Lua 5.2 and in-do-end
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua 5.2 and in-do-end
- From: David Burgess <dabsoft@...>
- Date: 2010年1月25日 12:46:12 +1100
On 25/1/2010 12:28 PM, Mark Hamburg wrote:
function pushenv( newenv )
local oldenv = getfenv( 1 ) -- However one gains access to it...
POUNCE. Methinks that the indoend thing would aided by a currentenv()
function. The only problem being is the requirement for
local currentenv = _G.currentenv
PS
The argument for pushenv() is sound. Without a Lua provided pushenv()
methinks there will be as many user implemented variants of this
function as there is Lua coders.
DB