lua-users home
lua-l archive

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



Hello all,
i'm using Lua 5.0.2 with lua_Number defined as __int64
(Microsoft VC under Windows NT).
Now, the simple expression

=1/0

crashes Lua interpreter with Division by zero exception.
The stock Lua using doubles properly writes 1.#INF as result.
I'd like to catch this exception and convert it to lua error.
How can I do this?
Regards,
Todor