lua-users home
lua-l archive

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


> It needs twice the lines (goto statement + label), and you need to
> make up a unique jump label per loop if you got multiple loops in a
> function with such a continue workaround.

Just to get the facts straight: you do not need a unique label per loop,
unless you have *nested* loops using 'continue'. Labels have block
scope, so a label inside a loop is not visible inside another
non-intersecting loop.

-- Roberto