Enumerations: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 680: | Line 680: | ||
enum |
enum |
||
int APPLE, BANANA, CHERRY |
int APPLE, BANANA, CHERRY |
||
fun asText = <|me.name + "(" + me.value + ")" |
|||
end |
end |
||
type ExplicitFruits |
type ExplicitFruits |
||
Line 687: | Line 686: | ||
int BANANA = 20 |
int BANANA = 20 |
||
int CHERRY = 1 |
int CHERRY = 1 |
||
fun asText = <|me.name + "(" + me.value + ")" |
|||
end |
end |
||
type Main |
type Main |