Enumeration classes


An enumeration is a class that contains constants. The values stored in these constants (fixnums by default) are instances of the class.
Image
ENUMERATION:

Image
define-enum-class ( class superclass member-list -- )

Image Enumeration element syntax

The set of all enumerations is itself a class
Image
enumeration-class

Image
enumeration-class? ( object -- ? )


Notes
Enumerations should not be confused with values of the similarly named enumerated class