Enums

For those who don't know about enumerated types, you can read about those here and here

Enums in gwion

enums require a name and at least one member.

You use them like this:

enum MyEnum {
  zero, one, two
};
<<< "${MyEnum.zero} ${MyEnum.one} ${MyEnum.two} >>>;

Storage and access Specifiers

When inside a class, enums accept private or protect specifiers.

built with mdBook
You'll find the source here, Luke!