Re: Any LuaJIT "continue" patch?

  • From: Lennart Bernhardt <l.bernhardt@xxxxxxx>
  • To: "luajit@xxxxxxxxxxxxx" <luajit@xxxxxxxxxxxxx>
  • Date: Thu, 13 Apr 2017 13:07:09 +0000

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<mailto: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


Other related posts: