[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I'd give my right arm for a continue statement
- From: Leo Razoumov <slonik.az@...>
- Date: Mon, 24 Jan 2011 07:12:19 -0500
On Sun, Jan 23, 2011 at 23:37, Dirk Laurie <dpl@sun.ac.za> wrote:
> On Mon, Jan 24, 2011 at 06:12:35AM +0200, Leo Razoumov wrote:
>> Seriously though, in dynamical languages it is difficult to "skip
>> forward" while it is easier to "skip backward".
> In Lua, "skip forward to end of current chunk" is also easy.
>
> I.e. "break".
>
> Dirk
>
In Lua "chunk" is a unit of execution (see [1]) and is represented by
an anonymous function. "break" will not exit from chunk, use "return"
instead.
[1] http://www.lua.org/manual/5.1/manual.html#2.4.1
--Leo--
- References:
- Re: I'd give my right arm for a continue statement, HyperHacker
- Re: I'd give my right arm for a continue statement, Michal Kottman
- Re: I'd give my right arm for a continue statement, steve donovan
- Re: I'd give my right arm for a continue statement, Axel Kittenberger
- Re: I'd give my right arm for a continue statement, David Kastrup
- Re: I'd give my right arm for a continue statement, GrayFace
- Re: I'd give my right arm for a continue statement, David Kastrup
- Re: I'd give my right arm for a continue statement, Leo Razoumov
- Re: I'd give my right arm for a continue statement, Miles Bader
- Re: I'd give my right arm for a continue statement, Leo Razoumov
- Re: I'd give my right arm for a continue statement, Dirk Laurie