aboutsummaryrefslogtreecommitdiff
path: root/src/interp/spaderror.lisp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-06-21 00:32:24 +0000
committerdos-reis <gdr@axiomatics.org>2011-06-21 00:32:24 +0000
commitb529872b2c3aeca9f9994b94c392383baea2c84a (patch)
treed69119cbfb471d49b926a555f9a68a6624df37ae /src/interp/spaderror.lisp
parente4656a0388e8fa12594788b216b42bb04680d9d5 (diff)
downloadopen-axiom-b529872b2c3aeca9f9994b94c392383baea2c84a.tar.gz
* lisp/core.lisp.in (%fNaN?): New.
* interp/spaderror.lisp (trapNumericErrors): Handle ARITHMETIC-ERROR too. * interp/g-opt.boot ($VMsideEffectFreeOperators): Include %fNaN?. * algebra/clip.spad.pamphlet (TwoDimensionalPlotClipping): Use it. * algebra/plot.spad.pamphlet (Plot): Likewise.
Diffstat (limited to 'src/interp/spaderror.lisp')
-rw-r--r--src/interp/spaderror.lisp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interp/spaderror.lisp b/src/interp/spaderror.lisp
index 7d65b506..2967dc27 100644
--- a/src/interp/spaderror.lisp
+++ b/src/interp/spaderror.lisp
@@ -60,9 +60,8 @@
#-:gcl
(defmacro |trapNumericErrors| (form)
- `(handler-bind ((division-by-zero
- #'(lambda (c) (declare (ignore c)) |%nothing|)))
- ,form))
+ `(handler-case ,form
+ (arithmetic-error () |%nothing|)))
;; the following form embeds around the akcl error handler
#+:gcl