lua-users home
lua-l archive

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


I'm not too sure what you mean, as "until something-with-x" does not access the local declared inside the if statement, so why would continue throw an error? -confused-

- Alex

----- Original Message ----- From: "dcharno" <dcharno@comcast.net>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Tuesday, February 26, 2008 11:14 AM
Subject: Re: upcoming changes in Lua 5.2 [was Re: Location of a package]

What would happen if someone wrote:

  repeat
    ...
    if not something then
       local x = ...
    end
    ...
  until something-with-x

Existing code would not break until someone adds a 'continue', then its not existing code ...