RE: [sv-bc] enumerated variable used with an equality operator

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Sat Mar 22 2014 - 11:35:34 PDT
I don't think that your description of current implementations is true.
The tools I work with will flag

e = 1; // e is an enum

as a syntax error, and I don't know of switches to turn that off.

Shalom

> Personally, at this point, I think that we'd end up with a more
> consistent definition if we just tossed any remaining assumptions about
> "strong" enums and do what (almost?) all implementations already either
> do by default or support as an option -- just treat enums as normal
> integral values with no special typing rules.

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Mar 22 11:35:44 2014

This archive was generated by hypermail 2.1.8 : Sat Mar 22 2014 - 11:35:52 PDT