is there a good method to work with non ordinal enums eg.:
AuthenticationMethod* = enum
NO_AUTHENTICATION_REQUIRED = 0x00.byte
GSSAPI = 0x01.byte
USERNAME_PASSWORD = 0x02.byte
# to X'7F' IANA ASSIGNED = 0x03
# to X'FE' RESERVED FOR PRIVATE METHODS = 0x80
# RESERVED = 0x03.byte .. 0xFE.byte ## <-- would be nice to have btw.
NO_ACCEPTABLE_METHODS = 0xFF.byte
since this is non ordinal i cannot transform it to a set or a seq, nor can i iterate the enum. This, unfortunately, makes it pretty useless to me.
I could maybe fill the holes with a macro (somehow). Do you have a tip how to handle these enums?