lua-users home
lua-l archive

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

> Yes, that's what I meant. But not only strings (in the sense of Lua 
> code), can pre-compiled scripts be freed after I lua_load and lua_pcall
> them?

If there is no longer a reference to them, the garbage collector will
take care of it. If you keep a reference to them, they will stick around.

Probably it is just doing what you want without your having to think about 
it :)