lua-users home
lua-l archive

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


On Tue, Feb 26, 2008 at 01:37:17PM +0200, Shmuel Zeigerman wrote:
> 'repeat' in Lua doesn't have to behave like 'repeat' or 'do' in other 
> languages. :)
true

FWIW another feature requested every year or two

loop: repeat
	local baz
	pass: do
		if foo then break pass end
		if bar then break loop end
	end
until baz

would support both a true break and break-to-continue in the same loop.
Obiously baz can not be local to the pass: block.


cheers