clairfy enum cast

This commit is contained in:
flaviut 2014-06-19 19:24:09 -04:00
commit 753a1f286d

View file

@ -48,7 +48,7 @@ Because enums are ordinals, they have the `low`, `high`, `inc`, `dec`, and `ord`
- `inc` increments
- `dec` decrements
- `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.