RosettaCodeData/Task/Enumerations/Ada/enumerations.ada

3 lines
188 B
Ada
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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