[Cfp-interest] exceptional macro

David Hough CFP pcfp at oakapple.net
Wed May 14 06:15:45 PDT 2014


Part of the semantics of FP_EXCEPTIONAL is that it preserves the previous
state of the flags and traps for exceptions that are mentioned, 
since these were anticipated, 
but not flags and traps for exceptions that were not mentioned, since these
were not.    What semantics would you propose for FP_EXCEPTIONS ?

> >  FE_EXCEPTIONAL( expression or compound statement, 
> >                  exception1, exception2, ...)
> 
> Rather than having the multiple arguments, perhaps it could be simply
> 
>   FE_EXCEPTIONS( expression )
> 
> which returns the exceptions raised in the evaluation of the expression (or
> compound statement if that's allowed), ORed together.  (Assuming the exceptions
> & subexpressions are defined to be bit-unique.) 


More information about the Cfp-interest mailing list