[Cfp-interest] Background: How IEEE Exceptions Might have beenImplemented

David Hough CFP pcfp at oakapple.net
Wed Jun 11 14:02:01 PDT 2014


>  On  <exception> then <statement>


It's really just another syntax for

{
#pragma STDC FENV_CATCH exception
 exceptional code 
}

or 

#pragma STDC FENV_CATCH exception label


label:
 exceptional code 



The questions that any syntax needs to provide a means to answer are:

1) what is the the normal case code that the exceptional handling applies to
2) what are the exceptions to be handled
3) what is the exceptional case code to be executed

At some level any of the ideas we've talked about could be syntactically
translated into any of the others... not necessarily in one pass though.

One point of view is that being as close as possible to C++ syntax 
is beneficial.
Another is that being as close to the existing #pragma STDC syntax is
beneficial.

I don't know which describes the C committee consensus, if there be one.

I'm revising the draft syntax discussion so we can further refine it
tomorrow.



More information about the Cfp-interest mailing list