[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Cleaning up specific lua scripts
- From: "Ricky Haggett" <ricky@...>
- Date: Wed, 24 Mar 2010 11:30:38 -0000
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 :)
[mailto:email@example.com] 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 <firstname.lastname@example.org> 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?