Re: Any LuaJIT "continue" patch?

  • From: Glenn Maynard <glenn@xxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 13 Apr 2017 17:17:49 -0500

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





-- 
Glenn Maynard

Other related posts: