lua-users home
lua-l archive

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


> Why goto and not continue?

Because goto is much more flexible. For instance, the source code for
Lua has ~14 gotos and only 2 continues.


> Why break can appear middle of block but not return?

Because return may be followed by an optional expression. Something
like 'return a       = 3' would confuse the parser.


> Can goto pass though local variable define?

No. See the documentation.

-- Roberto