[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Redefining locals
- From: "Aaron Brown" <aaron-lua@...>
- Date: Thu, 11 Nov 2004 10:10:06 -0500
--[[
I wrote (pardon my unclosed parenthesis):
> (and not counting the debug library, which might make it
> possible.
Here it is done with the use of the debug library:
--]]
local foo = "first value"
local foo = "second value"
print(foo) -- prints "second value"
print(debug.getlocal(1, 2)) -- prints "foo second value"
print(debug.getlocal(1, 1)) -- prints "foo first value"
-- Aaron