Re: Conversion and Assignment on EnumUnion and EnumChain

2014-05-04 Thread Nordlöw
I would now like to define rules for assignments and implicit conversions with the following checks I believe I found a good solution through struct wrappers. See update at: https://github.com/nordlow/justd/blob/master/enums.d

Conversion and Assignment on EnumUnion and EnumChain

2014-05-03 Thread Nordlöw
I've put up a module https://github.com/nordlow/justd/blob/master/enums.d that provides two type constructors - EnumChain - EnumUnion that can be used to combine names or names-and-values from one or more enums. I would now like to define rules for assignments and implicit conversions with