lua-users home
lua-l archive

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


On Mon, Jun 27, 2011 at 08:56:41PM +0200, Luiz Henrique de Figueiredo wrote:
> Lua 5.2.0 (beta-rc3) is now available at
> 	http://www.lua.org/work/lua-5.2.0-beta-rc3.tar.gz
> 

At the level of the reference manual, the only change to the language
I could find is the scope of a goto.  It now says:

   A label is visible in the entire block where it is defined, except
   inside nested blocks where a label with the same name is defined and
   inside nested functions. A goto may jump to any visible label as long
   as it does not enter into the scope of a local variable.

As I read it,

for i=1,n
    if a[i,i]==0 then goto continue end
    for j=i+1,n
        if a[i,j]==0 then goto continue end
        eliminate(a,i,j)
        ::continue:: end
    ::continue:: end

will now do mimic the continue statement.  

How's that arm doing, Steve? :-)

Dirk