SAKIYAMA Nobuo <nobuo(a)db3.so-net.or.jp> writes:
>>>>> In <kigwwblq6ma.fsf(a)jagor.srce.hr>
>>>>> Hrvoje Niksic <hniksic(a)srce.hr> wrote:
> Thanks for tracking this down. The right solution is to catch SIGFPE
> in temacs, so that the code works. Martin, what do you think?
'catch SIGFPE in temacs' is safe in dump?
Why not? The code *is* guarding against errors, so errors should not
just blow it away.
Very old ChnageLog(included in emacs-20.2, not in xemacs-2x) says,
[...]
What is the point of these entries? That signal shouldn't be used in
temacs? I think it's wrong not to guard against certain signals.
Another solution is to set the variables in C ,not in elisp, if
FLT_RADIX, FLT_ROUNDS
DBL_MANT_DIG, DBL_EPSILON,
DBL_DIG, DBL_MIN_EXP,
DBL_MIN, DBL_MIN_10_EXP
DBL_MAX_EXP, DBL_MAX
DBL_MAX_10_EXP
(included from <float.h>) is usable for the purpose.
That might be a good idea. What about portability?
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
"Memory is like an orgasm. It's a lot better if you don't have to
fake it." -- Seymour Cray, on virtual memory