lua-users home
lua-l archive

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


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?