Re: Support for goto and labels added

  • From: David Given <dg@xxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Mon, 17 Sep 2012 14:00:28 +0100

Mike Pall wrote:
[...]
> As has been pointed out on the Lua mailing list: goto is *not* a
> substitute for regular loops and control-flow constructs. But it's
> useful to implement "continue", to break out of deep loop nestings,
> to implement state machines or simulators and when using Lua code
> as a target language for cross-language translators.

Excellent news!

(/me adds writing a Lua backend for his Java compiler to the to-do list...)

-- 
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "Parents let children ride bicycles on the street. But parents do not
│ allow children to hear vulgar words. Therefore we can deduce that
│ cursing is more dangerous than being hit by a car." --- Scott Adams

Other related posts: