[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to change the function behavior at run-time in luav5.1.4
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 27 Jan 2010 12:37:56 +0200
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