lua-users home
lua-l archive

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

The answer is to re-factor your code so you don't have such a horrible loop construct in the first place. Easy.

On Wed, Jan 26, 2011 at 12:22 AM, Renato Maia <> wrote:

On 23 Jan 2011, at 17:18, Shmuel Zeigerman wrote:
And what if `continue' is needed from within deeply nested blocks? Even with depth of 2 (as in an example below) there's no simple replacement to it.

while condition do
 -- some code
 if test1 then
  -- more code
  if test2 then
  -- more code
 -- more code

Lucky you this code is inside a loop. ;-)

Renato Maia
Computer Scientist