lua-users home
lua-l archive

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


> Why 5.1 support negative and 5.2 do not support negative operating it?

Only Lua authors can really answer this question. I can just make a guess.
IMHO, Lua 5.1 _tolerates_ negative values for format %X rather that
_supports_ them.
You have to realize that the result of string.format("%X",-1) is not
defined : is it 0xFF, 0xFFFF, 0xFFFFFFFF, 0xFFFFFFFFFFFFFFFF, ... ?
Lua 5.2 is more strict concerning range of accepted numerical values.