[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can goto target a variable string label? If so, syntax?
- From: Paul Merrell <marbux@...>
- Date: Sat, 23 Nov 2013 19:33:03 -0800
On Sat, Nov 23, 2013 at 5:45 PM, Paige DePol <firstname.lastname@example.org> wrote:
> However, I am just putting the finishing touches on my jump table patch which, along with adding a very efficient select/case, also allows the use of computed gotos.
> This new feature adds a "jump table" to each closure in which the label (actually an offset into the constant pool), the syntax level the label was declared at, and the program counter offset from the start of the closure to the label. The jump table is also saved when the script is compiled!
> I don't know if you are interested in using patched Lua or not, but if this patch interests you I hope to have the first version of the patch out imminently. :)
Can't do it. But thanks for the news. I'm using Lua embedded in an app
and have no control of what gets compiled. But it's functionality I'd
definitely like to see in Lua if it can be done without creating
issues for existing scripts.
[Notice not included in the above original message: The U.S. National
Security Agency neither confirms nor denies that it intercepted this