lua-users home
lua-l archive

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


On 12/21/06, Ashwin Hirschi <deery@chello.nl> wrote:

> I guess that after my "repeat...break...until true" solution was blessed
> by Roberto himself, I will keep using it in all my code that requires
> "continue".

Alas, I don't consider it a solution at all, since it prevents you from using regular breaks in the same construct [unless you're willing to add even more control routing code... :-(].

In other words, "continue" is definitely still at the top of my Lua wish list.

Ashwin.

Ashwin,
my solution is for "continue" construct only. I agree with you that
having both "break" and "continue" within a same loop poses a
challenge to Lua. Work around involves unnecessary flag and looks
ugly.

I hope that there is enough interest in having "continue" statement
implemented in Lua 5.2. Any comments by developers??

--Leo--