From 2f9136b0b546e6196a04e52d9fd9e6db20e57184 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 18 Nov 2018 01:19:30 +0000 Subject: [PATCH] Fix release note on floating-point exceptions. --- src/relnotes/flotrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/relnotes/flotrap b/src/relnotes/flotrap index e946c3dba..a1062949e 100644 --- a/src/relnotes/flotrap +++ b/src/relnotes/flotrap @@ -9,6 +9,9 @@ If you want to trap on (e.g.) invalid-operation, you can do (lambda () ...)) +You can find the set of all exceptions that can be trapped with +(flo:trappable-exceptions). + You can also test for floating-point exceptions after a computation without trapping. Before you can do this for the first time in any thread, you must clear the floating-point exceptions (otherwise there @@ -16,7 +19,7 @@ may be residual garbage from past computations): (flo:preserving-environment (lambda () - (flo:clear-exceptions! (flo:all-exceptions)) + (flo:clear-exceptions! (flo:supported-exceptions)) (let ((x (do-big-computation))) (if (not (zero? (flo:test-exceptions (flo:exception:underflow)))) (warn "underflow")) -- 2.25.1