Re: Enum?
> From what I understand, the first entry in any 'enum' statement is always
> set to 1. However, the 'last enumeration value' option would be useful
> (for example, to define a sequence of that length for holding a structure),
> but I wasn't and still am not sure what would be good syntax for this. I'm not
> so sure about the $ syntax proposed.
Actually, you can set it to anything you want. It defaults to 1 if nothing is
given...
enum NAME=20,AGE,DOB -- 20,21,22
enum ENGINE,WHEELS,MUFFLER -- 1,2,3
enum A=-3,B,C,D,E,F -- -3, -2, -1, 0, 1, 2
enum A,B,C,D=10,E,F -- 1,2,3,10,11,12
--
Jeremy Cowgar
http://jeremy.cowgar.com
|
Not Categorized, Please Help
|
|