[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Switch/Case statements revisited (using tables?)
- From: David Kastrup <dak@...>
- Date: Fri, 09 Nov 2007 12:12:05 +0100
"Javier Guerra" <javier@guerrag.com> writes:
> On 11/8/07, Mark Hamburg <mhamburg@adobe.com> wrote:
>> However, then the functions can't generally see the necessary upvalues.
>
> that's why i usually do use parameters and/or more levels of local
> scoping (surrounding some functions and their shared local vars
> (upvalues) with do...end)
Seems like the right thing to do. But it means that the approach is
less attractive/feasible as a general technique.
--
David Kastrup