You can use goto in place of all flow control, but this isn't BASIC. Goto
isn't a substitute for continue.
On Thu, Apr 13, 2017 at 8:07 AM, Lennart Bernhardt <l.bernhardt@xxxxxxx>
wrote:
You can just use a goto like so:
for i=1,10 do
if i % 2 == 0 then goto continue end
print(i)
::continue::end
On Thu, Apr 13, 2017 at 6:07 AM, Glenn Maynard <glenn@xxxxxxxx> wrote:
I'm testing out converting a Lua project to LuaJIT, and dealing with a
few langauge patches we use that need to be reimplemented.
One adds continue (http://www.corsix.org/luacontinue/continue.patch),
which is indispensable. Is there any similar patch for LuaJIT? I'm
guessing this can be done entirely within the parser without touching
codegen.
--
Glenn Maynard