lua-users home
lua-l archive

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


On Mon, Dec 26, 2005 at 09:07:39AM -0800, Jens Alfke wrote:
(In any case, a statement after an unconditional 'return' would be
unreachable, so there's no valid reason to have one.)
This is incorrect. I very often stick return statements in the middle of C code, as a quick way to effectively comment out the rest of the function
while debugging.
--
Glenn Maynard

The lua equivalent would be:

do return end

This can be put in the middle of a function, without making the parser unhappy.

-- Tim Gogolin