lua-users home
lua-l archive

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


On Thu, Nov 19, 2015 at 1:49 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> Lua 5.3.2 (rc1) is now available for testing at
>>       http://www.lua.org/work/
>
> What is new:
>[...]
> - table.sort "randomize" the pivot

Was there a reason for using ints for the indexes (lo/up)? Why not lua_Integer?

I also noticed that you could easily create a table with a __len
metamethod to give arbitrary int values for up. I don't immediately
see a way to break something with that but it may be possible.

-- 
Patrick Donnelly