[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: "continue" construct in Lua loops
- From: "Leo Razoumov" <slonik.az@...>
- Date: Fri, 22 Dec 2006 01:04:36 -0500
On 12/21/06, Ashwin Hirschi <email@example.com> 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
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.
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
I hope that there is enough interest in having "continue" statement
implemented in Lua 5.2. Any comments by developers??