lua-users home
lua-l archive

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


>From lua-l@tecgraf.puc-rio.br Tue Jul 20 06:52:52 1999
>From: "Samson, Lyndon (GEIS)" <Lyndon.Samson@geis.ge.com>

>	It's unfortunate that 'return' has to be the last statement in a
>function, it would be quite useful in these circumstances if it
>	could be used anywhere.

A 'return' has only to be the last statement in a block.
You can always write

	...
	do
	 return
	end
	...
--lhf