lua-users home
lua-l archive

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



First my system load a lua file in memory as the common module, then, to response the user's click,
I must load the second lua file in. when done, I need unload the previous lua file, and load anther
lua file in. when unloading the second lua file , I must release all the memory which the second lua file
used and keep the first lua file in memory. The memory in my machine is very small. And We have many lua files,
so I don't want to change the lua files.
 
So change in lua engine is better.
 
 
2010-03-25

bravefly

发件人: steve donovan
发送时间: 2010-03-25  17:43:57
收件人: Lua list
抄送:
主题: Re: Cleaning up specific lua scripts
On Thu, Mar 25, 2010 at 11:38 AM, bravefly <bravefly@gmail.com> wrote:
> Could we implement it in lua‘s C source code ?
> I hava the same need as Ricky, and now thinking a method
> to solve it in lua's source code.
Of course, anything can be done in C, but it will be harder to do and
understand. Why not Lua?