lua-users home
lua-l archive

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


On Sat, Jan 11, 2014 at 10:38 AM, Thiago L. <fakedme@gmail.com> wrote:
>> Why doesn't Lua have nameless labels or something?
> I've seen it in assembly... I think it would be great for continues...

Lua has something better than nameless labels -- it has SCOPED labels.
A label is only visible within the block containing it. This allows
you to use the same label (e.g. ::continue::) in every circumstance in
which you need it.

/s/ Adam