[J3] branch based on ieee class ?

Robert Corbett rpcorbett at att.net
Thu Nov 7 11:25:47 EST 2019


Table 10.2 applies to intrinsic
operations.  Subclause 17.2
paragraph 3 requires a processor
to provide == and /= as defined
operations.

Bob Corbett

> On Nov 7, 2019, at 7:38 AM, Dan Nagle via J3 <j3 at mailman.j3-fortran.org> wrote:
> 
> Hi,
> 
> How to?
> 
> C1145 removes the select case option (my first choice), and
> Table 10.2 eliminates if-blocks by not listing ieee_class_type
> among the allowed operands for == and /= (or .eqv. and .neqv.).
> 
> I'm writing a workshop on ieee 754 and I would like to write
> a diagnostic routine that can print "this is an X" where
> X is one of the ieee_class_type values.  So I want to branch
> to select the correct label per class.
> 
> (With the select case, a range of values does not seem to make sense.
> But I want to case each one singly, so that's no matter to the task at hand.)
> 
> 
> --
> 
> Cheers!
> Dan Nagle
> 
> 



More information about the J3 mailing list