lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, Jun 28, 2011 at 8:25 AM, steve donovan
<steve.j.donovan@gmail.com> wrote:
>  It would appear that goto-labels are now per-block,

Indeed so!

function test()
  local i = 0
  repeat
     ::back::
     i = i + 1
     if i < 3 then goto back end
     print(i)
  until i == 10
  i = 0
  repeat
     ::back::
     i = i + 1
     if i < 3 then goto back end
     print(i)
  until i == 10
end

test()

steve d.