[Cfp-interest] draft of syntax discussion for C committee
Fred J. Tydeman
tydeman at tybor.com
Fri Jun 6 16:42:59 PDT 2014
On Fri, 6 Jun 2014 16:25:15 -0700 (PDT) David Hough CFP wrote:
>
>You don't need exception lists any more - list one exception at a time
>even if they both go to the same place.
>The above is entirely freed from block structure... or not:
>
> {
> #pragma STDC catch_fe fe_exception1 label1
> #pragma STDC catch_fe fe_exception2 label2
> ... normal case code
> break;
> label1:
> ... exception case 1 code
> label2:
> ... exception case 2 code
> }
> ... normal case continues here
I like this. It could be made more general by putting the label first
and follow it with a list of exceptions.
It might be better to require the label to be within the same block as
the pragma.
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (775) 287-5904 Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the Cfp-interest
mailing list