On Friday, 4 April 2014 at 18:15:43 UTC, Meta wrote:
And another:

 array[A + 1] = t; // Error: incompatible types Index and int

And another:

 enum Mask { A=1,B=4 }

 Mask m = A | B;   // Error: incompatible operator | for enum

and on it goes. These are routine and normal uses of enums.


Perhaps we *will* get typesafe enums of a sort via a library implementation.

Reply via email to