Re: enum options
- Posted by Bernie Jul 18, 2008
- 869 views
Matt:
What I was trying to point out was that the way being discussed was tto complicated and confusing for a user.
Hers is a simple idea.
The reserved word enum would be considered as a constant and have 2 forms.
enum or global enum depending on its scope.
example :
enum 1 <<== this value following enum is the increment or decrement value. foo = 0, <<== sets the starting point apple, banna, <<== each coma causes an increment orange, barr, beer, <<== this is 5 beef = 23, <<== this changes our count value telephone, <<== this is 24 bicycle; <<== semicolon ends the enumeration