[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) now available
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 14 Jun 2011 12:56:13 +0200
On Tue, Jun 14, 2011 at 12:35 PM, David Given <dg@cowlark.com> wrote:
> @label: -- 0
> do
> goto label
> do
> @label: -- 1
> end
> @label: -- 2
> end
>
> Does the goto jump to 0, 1, 2, or is this a compilation error?
Using the experimental method, it goes to the first label. In fact,
putting a 'goto label' in block 1 still goes to 0, which is a wee bit
surprising.
Of course (talking about code generation) first prize is if Lua
supported some kind of #line directive and truly become the C of
dynamic languages. But that might be a bit specialized ...
steve d.