46. Enumeration traits

The enum_trait module implements typeinfo traits for the enumerations.

All functions and symbols are in “enum_trait” module, use require to get access to it.

require daslib/enum_trait

46.1. Typeinfo macros

enum_names

Implements typeinfo(enum_names EnumOrEnumType) which returns array of strings with enumValue names.

enum_length

Implements typeinfo(enum_length EnumOrEnumType) which returns total number of elements in enumeration.