[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Re: Freeing Lua scripts
- From: RLake@...
- Date: Thu, 26 Jun 2003 10:50:08 -0500
> Yes, that's what I meant. But not only strings (in the sense of Lua
source
> 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 :)