[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Minimizing repeatable statements with out LuaMacro
- From: James Graves <james.c.graves.jr@...>
- Date: Mon, 20 Jun 2011 10:12:48 -0500
PROXiCiDE <firstname.lastname@example.org> wrote:
> thank you for your response and implementation, can you tell me the difference
> between this and the loadstring implement?
The table of functions is generally better, in my view. It doesn't
involve on-the-fly code compilation, so it should be faster. And it
is more secure and easier to maintain. You don't want to just load
any arbitrary code and run it, especially if those strings can be
somehow input by a user.