RosettaCodeData/Task/Enumerations/Ada/enumerations.ada
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

2 lines
188 B
Ada

type Fruit is (apple, banana, cherry); -- No specification of the representation value;
for Fruit use (apple => 1, banana => 2, cherry => 4); -- specification of the representation values