[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tables
- From: "Nick Trout" <nick@...>
- Date: Wed, 10 Oct 2001 10:22:45 +0100
| What happens to a table when I set the variable to nil.
|
| [LUA]
| Rain={x=5, y=30, z=0}
| Rain=nil
|
| Will the {x=5, y=30, z=0} part of the table be collected by the garbage
| collector or will it be de-allocated of will it just float around in the
| memory. What I want to do is create a table and use it in one function
| (many time) and be able to trow it away away when I dont need it anymore.
| is this possible?
There is some information on Lua garbage collection on the wiki :-
http://lua-users.org/wiki/GarbageCollection
http://lua-users.org/wiki/OptimisingGarbageCollection
N