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.
https://github.com/D-Programming-Language/phobos/pull/2058Perhaps we *will* get typesafe enums of a sort via a library implementation.
