2.5.9. Enum

TODO.

2.5.9.1. Instruction

target = enum.from_int op1 [enum_::FromInt]
Target:enum { }
Operator 1:int<*>

Converts the integer op2 into an enum of the target’s type. If the integer corresponds to a valid label (as set by explicit initialization), the results corresponds to that label. If integer does not correspond to any lable, the result will be of value Undef (yet internally, the integer value is retained.)

target = enum.to_int op1 [enum_::ToInt]
Target:int<*>
Operator 1:enum { }

Converts the enum op1 into an integer value.enum. If the enum is undefined, it will return -1.