Allow static methods and fields for enum?

Profile Anaysis via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 25 22:32:10 PST 2017


Why not make enum a comparable type to structs and classes?

They are static so they can't contain any mutable fields but 
surely they can contain methods? And especially they should be 
able to contain static methods!?





More information about the Digitalmars-d mailing list