On 2013-03-01 20:13, Steven Schveighoffer wrote: > D does not (or at least should not) allow assignments of integers back to > enumeration types. You have to cast. or use normal int enum instead of byte enum, if you have the space for it.