enum | |
ACTION: |
create an enumeration
|
USE: |
assign a numeric identity to a name
|
EXAMPLE: |
enum ManyThings ( Shoes,Ships, SealingWax, Cabbages, Kings ) ManyThings thing thing=cabbages print thing if thing=cabbages then print "Cabbages!" |
REMARKS: |
C syntax is supported for this construct. Also enum bit assigns values 1,2,4,8,16.. instead of 0,1,2,3,4.. |
RELATED: |
typedef
enum
#define
(%)
|