lua-users home
lua-l archive

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

On Sun, Jan 23, 2011 at 23:37, Dirk Laurie <> 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"