[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why do we have ipairs?
- From: Paige DePol <lual@...>
- Date: Thu, 26 Jun 2014 01:02:53 -0500
On Jun 25, 2014, at 12:53 PM, Pierre-Yves Gérardy <pygy79@gmail.com> wrote:
>
> Team Lua actually sidestepped this problem for `goto`s by forbidding
> to jump into the scope of a local variable. The same restriction could
> have been used for `continue`. It could still be used, actually ;-)
>
> —Pierre-Yves
Indeed they did, it could of been used, don't know why it wasn't, but my patch works quite well for me.
I like having a `continue` keyword, and I especially like having Lua take care of creating the ::continue:: label for me and not having to use the ugly `goto continue` syntax... thankfully we just have `break` and don't need to create our own ::break:: label and use `goto break`... ick. ;)
~pmd
- References:
- Re: Why do we have ipairs?, Coda Highland
- Re: Why do we have ipairs?, Thiago L.
- Re: Why do we have ipairs?, Daurnimator
- Re: Why do we have ipairs?, Thiago L.
- Re: Why do we have ipairs?, Axel Kittenberger
- Re: Why do we have ipairs?, Jay Carlson
- Re: Why do we have ipairs?, Axel Kittenberger
- Re: Why do we have ipairs?, Andrew Starks
- Re: Why do we have ipairs?, Axel Kittenberger
- Re: Why do we have ipairs?, David Demelier
- Re: Why do we have ipairs?, Sean Conner
- Re: Why do we have ipairs?, Pierre-Yves Gérardy