Re: [ANN] Lua 5.2.0 (beta-rc2) now available
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc2) now available
- From: dcharno <dcharno@...>
- Date: 2011年6月22日 02:13:49 -0400
On 06/22/2011 12:57 AM, Lorenzo Donati wrote:
On 22/06/2011 0.21, Luiz Henrique de Figueiredo wrote:
Lua 5.2.0 (beta-rc2) is now available at
http://www.lua.org/work/lua-5.2.0-beta-rc2.tar.gz
[snip]
I see that a constraint has been introduced so that a label cannot be
repeated inside the same function.
I've already argued on the other thread (5.2 beta-rc1) that I'd prefer a
limit "per-block". There I motivated my preference with an use case for
error management.
...
> So if the limit where per-block, it would be possible to reuse common
> labels for common idioms.
I gave up following the other goto thread so I must have missed the "per
function" label constraint. It should really be "per block".
Its ashame. The goto syntax isn't easy on the eyes, but it was powerful
and allowed a reasonable workaround for standard patterns like continue.
But this "per function" limit really blows that; what a pity.