lua-users home
lua-l archive

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


on 11/8/07 9:23 AM, Javier Guerra at [email protected] wrote:

> On 11/8/07, Mark Hamburg <[email protected]> wrote:
>> The downside to the dispatch table is that it instantiates the closures for
>> all of the branches of the switch. That's not something you want to be doing
>> inside a loop.
> 
> that's why i separated the declaration of the dispatch table from its usage

However, then the functions can't generally see the necessary upvalues.

Mark