From 62909573be7aa52efc6f3547ffdcf75ffb5fae05 Mon Sep 17 00:00:00 2001 From: "Paul A. Bristow" Date: Sun, 23 Mar 2008 11:53:51 +0000 Subject: [PATCH] Added note on user option to handle infinity and other special cases by intercept before calling distribution or function. [SVN r43801] --- doc/sf_and_dist/implementation.qbk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/sf_and_dist/implementation.qbk b/doc/sf_and_dist/implementation.qbk index 6e4183ec8..ac647f7f8 100644 --- a/doc/sf_and_dist/implementation.qbk +++ b/doc/sf_and_dist/implementation.qbk @@ -207,6 +207,11 @@ However in a few cases, for example normal, where we felt it obvious, we have permitted argument(s) to be infinity, provided infinity is implemented for the realType on that implementation. +Users who require special handling of infinity (or other specific value) can, +of course, always intercept this before calling a distribution or function +and return their own choice of value, or other behavior. +This will often be simpler than trying to handle the aftermath of the error policy. + Overflow, underflow, denorm can be handled using __error_policy. We have also tried to catch boundary cases where the mathematical specification