[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) now available
- From: David Kastrup <dak@...>
- Date: Tue, 14 Jun 2011 22:53:40 +0200
Florian Weimer <fw@deneb.enyo.de> writes:
> * Roberto Ierusalimschy:
>
>>> > The reference manual clearly states:
>>> >
>>> >> A label is visible in the entire block where it is defined (including
>>> >> nested blocks, but not nested functions).
>>>
>>> And I think this is a mistake, both in implementation and in
>>> specification.
>>
>> What is the mistake? What change would you suggest?
>
> Labels should have non-lexical scope, extending across the whole
> function, and the same label must not be used twice within the same
> function.
What is "the whole function"? Chunks exist outside of functions, and
functions can be nested. What kind of "non-lexical scope" are you
asking for? Should labels be accessible to called functions in
different lexical scope? Why would that be a good idea?
--
David Kastrup
- References:
- [ANN] Lua 5.2.0 (beta-rc1) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Xavier Wang
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Petite Abeille
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, David Given
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Florian Weimer
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Dirk Laurie
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Florian Weimer
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Florian Weimer