lua-users home
lua-l archive

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


> i'm using Lua 5.0.2 with lua_Number defined as __int64
> Now, the simple expression
> 
> =1/0
> 
> crashes Lua interpreter with Division by zero exception.
> I'd like to catch this exception and convert it to lua error.

Refedine luai_numdiv to test for 0 divisor.