lua-users home
lua-l archive

Re: Lua BitOp test file causes exception?

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


Joe Andresen wrote:
anyone else get this using the source?
bad argument #1 to '?' (number expected, got no value)
line 22 of the test file:
if pcall(f) or pcall(f, "z") or pcall(f, true) then
where f is the function "tobit"
Everything's OK on my machine.
However this error can be reproduced if pcall is redefined, e.g.:
 pcall = function(f, ...) return true, f(...) end
--
Shmuel

AltStyle によって変換されたページ (->オリジナル) /