can I generate an enum from a typelist?

Vlad Levenfeld vlevenfeld at gmail.com
Tue Apr 8 17:21:31 PDT 2014


That's exactly what I was looking for. I pulled the Solid,...,etc 
definitions out of Layer and replaced the entire Layer definition 
with this:

alias Layer = Algebraic !(Solid, Gradient, Text, Sprite, Plane);

and after grepping in the get!(T) method, everything works 
perfectly. This is a really clean solution, thank you!


More information about the Digitalmars-d-learn mailing list