[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 and continue
- From: Shmuel Zeigerman <shmuz@...>
- Date: Thu, 14 Jan 2010 07:13:18 +0200
Nevin Flanagan wrote:
While I understand that the phrasing can be noticeably prettier and easier to maintain in some circumstances, is there something "if condition then continue end" does that "if not condition then rest_of_loop end" can't?
Like `break', `continue' can reside inside (deeply) nested if-then
constructs, in multiple places. (Your question kind of assumes that
`continue' can be only called from the outermost loop level).
while loop() do
if c1() then
if c2() then