lua-users home
lua-l archive

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

Yep, we could store a table of all of the functions / tables within a
specific level script, but it would be awkward for the designers to
maintain, and a potential source of error...

It seemed like a problem which would be common enough for someone to have
come up with an elegant and foolproof solution :)

-----Original Message-----
[] On Behalf Of steve donovan
Sent: 24 March 2010 11:23
To: Lua list
Subject: Re: Cleaning up specific lua scripts

On Wed, Mar 24, 2010 at 1:17 PM, Ricky Haggett <> wrote:
> Collectgarbage will only work if I set the functions/tables I want to
> to nil - the question is how I differentiate the level-specific ones I do
> want destroying from the global ones I don't..

Very true - the obvious solution is keep level-specific items in
separate tables, within a global table. Or would this be awkward?