lua-users home
lua-l archive

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


On Tue, Oct 27, 2009 at 6:01 PM, Alexander Walz wrote:
> Of course, statementsXY could be put into a procedure to be called from
> within the if statement.

or transformed via token filters, in a way that preserves line numbers
for debugging:

local _FINALLY; if cond1 then
   statement1
_FINALLY = true; elseif cond 2 then
   statement2;
_FINALLY = true; end; if _FINALLY then
   statementX
   statementY
else
   other statements
end