lua-users home
lua-l archive

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


On Thu, Mar 25, 2010 at 10:52, bravefly <bravefly@gmail.com> wrote:
> 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.

I'll second Steve.
The solution I offer above (or a variation) should do the trick in
pure Lua. Why do you want to do it in C?

Cheers,
-- Pierre-Yves