nested enum like template generator

JS js.mdnq at gmail.com
Mon Jul 15 20:43:15 PDT 2013


http://dpaste.dzfl.pl/7c8b0ba9

Why the heck can't we use integers in ctfe's? There seems to be 
no simple way to create a counter and this is one of the most 
basic programming constructs to use.. yet with ctfe's it's 
impossible.

I'd like each variable in the nested structs to be incremented 
properly.





More information about the Digitalmars-d-learn mailing list