[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: how to call a local function by its name?
- From: Brigham Toskin <brighamtoskin@...>
- Date: Mon, 8 Jun 2015 12:11:55 -0700
Other than a name-to-function mapping table (like in your first example), I don't think there's a way to do this directly. You could use loadstring() to invoke a function by name, it has to be visible form the compiled function's context, which won't have access to your locals. It would also be inefficient, if you have to do this a lot.