lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 06/21/2011 11:15 PM, Josh Simmons wrote:
On Wed, Jun 22, 2011 at 1:03 PM, dcharno<dcharno@comcast.net>  wrote:
On 06/21/2011 06:21 PM, 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

MD5     9ea65fecf46eaedc72824ed599e5877a  -
SHA1    b0f44b05f6fa36c200fb565c5b2160be5b63e385  -

This is a beta version. Some details may change in the final version.

The main changes since Lua 5.1 are listed in
        http://www.lua.org/work/doc/#changes

The complete diffs from rc1 are available at
        http://www.lua.org/work/diffs-lua-5.2.0-beta-rc1-beta-rc2.txt

A test suite is available at
        http://www.lua.org/tests/5.2/

This release candidate will be the beta version if no glitches are found
in the next 10 days or so. We thank everyone for their feedback till now.

All feedback welcome. Thanks.
--lhf

The reference manual says labels are visible in the block where they are
defined.  So, why does the following fail in rc2?

        while false do
                break
                goto label
        ::label::
        end

        while false do
                break
                goto label
        ::label::
        end

        $ ./src/lua: t.lua:12: label 'label' already defined on line 6

Aren't ::label:: defined in different blocks?


"A label is visible in the entire block where it is defined (including
nested blocks, but not nested functions). A function cannot have more
than one label with a given name." Emphasis on the second sentence.

This working in rc1.  So much for progress.