lua-users home
lua-l archive

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


Hi list,

I noticed some inconsistent behavior in tonumber(), both in Lua 5.1
and the current 5.2 beta:
tonumber({}) returns nil
tonumber({}, 16) throws an error

Is there a specific reason why the behavior is different when a
non-default base is given?


-- 
Dirk