Menu

keywords-values

Will Pittenger

Structure-based enum types use values to declare a list of possible values for the type. Each structure-based enum type must have exactly one values clause. If the null keyword is anywhere in the list, instances of the type can be set to null. For more on structure-based enum types, see the section [Enums]. All entries in the values block are implicitly public.

\enum\ \structure\ /TypeNameIdentifier/
  [\extends\ BaseTypeList]
  \values\
    (/EntryIdentifier/ [/ParameterList/])...values

  ' Declare the rest of the type

Related

Wiki: Enums
Wiki: Keywords
Wiki: keywords-enum
Wiki: keywords-null
Wiki: keywords-public