clairfy enum cast
This commit is contained in:
parent
5b66cf0b7b
commit
753a1f286d
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ Because enums are ordinals, they have the `low`, `high`, `inc`, `dec`, and `ord`
|
||||||
- `inc` increments
|
- `inc` increments
|
||||||
- `dec` decrements
|
- `dec` decrements
|
||||||
- `ord` gives the integer value of the enum
|
- `ord` gives the integer value of the enum
|
||||||
- `CompassDirections` gives the enum value from an integer
|
- `CompassDirections` is a cast that gives an enum from an integer
|
||||||
|
|
||||||
It is also possible to iterate through all possible values of ordinal enums, either as shown above, or `cdNorth..cdWest`, which is equivalent.
|
It is also possible to iterate through all possible values of ordinal enums, either as shown above, or `cdNorth..cdWest`, which is equivalent.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue