Top Level Namespace

Defined in:

Macro Summary

Macro Detail

macro __enum(enum_name, &block) #

There's avram_enum, but that saves the enum value as Int32 in the database. The problem is, enum member values are order-dependent -- the values change when the member ordering changes.

Besides, you couldn't make sense of the numbers if you peeked into the database

__enum saves enum members as String instead.


[View source]