|
|
On 8/15/2012 4:52, clipka wrote:
> You're right there. I guess it's to provide support for bitfield-style use
> of enums.
That too. They're just conveniently-named integers.
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.
--
Darren New, San Diego CA, USA (PST)
"Oh no! We're out of code juice!"
"Don't panic. There's beans and filters
in the cabinet."
Post a reply to this message
|
|