Re: [sv-bc] 4.10.4 "Enumerated types in numerical expressions" - unclearness

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Apr 13 2006 - 15:28:57 PDT
Another data point is an example from that same section

   if ( 1 == c )    // OK, c is auto-cast to integer

Would it also be OK to write the following?

   if ( 1000 == c )

Also, according to 4.10.4, it's OK to do arithmetic that mingles
variables of different enum types.

-- Brad
Received on Thu Apr 13 15:29:02 2006

This archive was generated by hypermail 2.1.8 : Thu Apr 13 2006 - 15:29:11 PDT