[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: proposal: state machine syntax also usable for continue / nested break
- From: David Manura <dm.lua@...>
- Date: Fri, 28 Jan 2011 00:03:25 -0500
On Thu, Jan 27, 2011 at 11:49 PM, Xavier Wang <weasley.wx@gmail.com> wrote:
> how about using a local variable to replace label?
I don't local variables can completely replace labels in the above
proposal (as opposed to [1]). However, my above suggestion for
implicitly naming variables could incorporate the loop variable name
in the label. Therefore, :forfor: could be replaced with :kk: .
[1] http://lua-users.org/lists/lua-l/2010-11/msg00556.html