[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) GOTO
- From: David Manura <dm.lua@...>
- Date: Wed, 15 Jun 2011 21:22:41 -0400
On Wed, Jun 15, 2011 at 6:25 AM, Michael Rose <email@example.com> wrote:
> @123\n The often missed line directive for compiler generated code.
> The next line would be line number 123 of the original file.
> A proposal to rearange compiler generated code with gotos to fit the
> original line numbers is not feasible, because sometimes the same line number
> can be used several times for subconstructs. This solution is also more clean IMHO.
Do you allow this?
@ 123 f()
@ 124 g()
@ 123 h()
lua-5.2.0-beta-rc1 doesn't allow the following analogue because label
"line123" is redefined in the same scope:
@ line123: f()
@ line124: g()
@ line123: h()
(However, there is no need for Lua to care about this conflict because
there is no goto targeting any of these labels.)