[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Named loops and blocks for use with break
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 05 Oct 2005 11:39:53 -0300
> Using 'break if <exp>' (with whitespace after 'break') would create an
> ambiguous syntax, but only in the case where an (unreachable) 'if'
> follows a 'break' - and that is often desirable when debugging.
There is no ambiguity. A break must be the last statement in a block.
> <outer> while true do
This syntax is already valid in Lua:
a = b<count>5
-- Roberto