an enum inside another enum

Simen Kjaeraas simen.kjaras at gmail.com
Thu Jul 26 07:15:33 PDT 2012


I've also written this implementation of enumerations. It's a bit  
different from normal D enums, but supports inheritance, guarantees unique  
values, as is much more conservative in what conversions and operations it  
allows.

I'm considering adding addition and subtraction of integers as valid  
operations, but I'm not sure I want to.

Feel free to critique, hack, improve upon and otherwise use and abuse the  
code.


--
Simen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: enumeration.d
Type: application/octet-stream
Size: 6348 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120726/0e8a9892/attachment-0001.obj>


More information about the Digitalmars-d-learn mailing list