enum inheritance

Dicebot public at dicebot.lv
Mon Jul 15 04:00:58 PDT 2013


On Monday, 15 July 2013 at 04:24:59 UTC, JS wrote:
> ...

I think closest solution you can get is having bunch of private 
enum definitions and combining them into single public one via 
compile-time reflection. Something like "mixin(generateEnum!(Red, 
Green, blue))".


More information about the Digitalmars-d-learn mailing list