On Wed, 3 Sep 2003, steven james wrote:
It seems to me that working out the integer value of an enum is actually abuse of the type. The closest one should get to that is ++ or -- to step through enumerated objects.
yeah but The Man Himself, Rob Pike, came up with this idea, and Ken and Dennis bless it. I figure if anybody can bless such a use of enum, the guy who invented the language is probably the one :-)
I'll try to get some Plan 9 excerpts for reference.
ron