[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 13 Jun 2011 17:03:38 -0300
> 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