lua-users home
lua-l archive

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


On Wed, Jan 27, 2010 at 11:53 AM, 刘小凡 <zhqqmao@gmail.com> wrote:
> Hello, everyone, sometimes I would like to change the run-time behavior of a
> function, usually I use dofile to achieve, but doing so will not change the
> previous reference, so I think maybe directly to change the function

Maybe setfenv would help you.

http://batbytes.com/luafaq/#T1.21