[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Error catching
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 30 Jan 2001 07:30:36 -0200 (EDT)
>As for the division behaviour, that's completely standard (according to IEEE
>rules), but easily changed, assuming you have fenv.h on your system: you
>just need to change the floating point exception state of the program
>hosting Lua, using fesetexcept flag.
fenv.h seems to be standard in C99, but not in C89 or POSIX.
(However, it is present in recent Linux distributions.)
So, there's nothing we can do to the Lua code, if we want to keep it portable.