|
|
Am 16.08.2012 01:58, schrieb Darren New:
> I far prefer Java's enums, which are basically a full-blown class (with
> member variables and static and instance functions and everything), but
> with all valid instances of the class being declared in the enum at
> program start-up time. So, basically, a full class plus a bunch of
> "static BLAH = new ..." sorts of operations.
Strangely enough, I imagined to remember that it was C# that did enums
that way. Don't know where and when I mixed that up.
Yeah, I really do like that approach as well.
Post a reply to this message
|
|