[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Nameless labels?
- From: Coda Highland <chighland@...>
- Date: Sat, 11 Jan 2014 10:46:53 -0800
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