lua-users home
lua-l archive

Re: proposal: state machine syntax also usable for continue / nested break

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


On 28/01/2011 17.20, Paul Hudson wrote:
Can we have computed go to? http://en.wikipedia.org/wiki/Goto#Computed_GOTO
(I am joking, but it would actually fit quite well with the current
proposal.
 break (n) :label1: :label2:
anyone?)
Well, if break accepts a string... :-)
 local somewhere = getRandomDestination()
 break(somewhere)
--
 Enrico

AltStyle によって変換されたページ (->オリジナル) /