lua-users home
lua-l archive

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


2013/3/7 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
> Lua 5.2.2 (rc3) is now available at
>         http://www.lua.org/work/lua-5.2.2-rc3.tar.gz

> The complete diffs from rc2 to rc3 are available at
>         http://www.lua.org/work/diffs-lua-5.2.2-rc2-rc3.txt

The Manual now says:

| The index pos can also be 0, when #list is 0, or #list + 1; in those cases,
| the function erases the element list[pos].

This release is supposed to be a bugfix release, but the pos=0
behaviour appears to be changed functionality.

In Lua 5.2.1 the manual says nothing about index 0, and
table.remove(tbl,0) silently does nothing.

In Lua 5.2.2-rc2 table.remove(tbl,0) gives an out-of-range error.

Chenged functionality.