In reading #314, it appears that it is not possible to fully iterate an is_flags enum that has a zero value. This seems like an unfortunate limitation. I have frequently encountered bit-sensitive enums that include a 0 value for clearing out the bits. My code simply needs to iterate the names and values to create Lua constants, and bit-sensitive values are resource-intensive if they don't set is_flags.
In reading #314, it appears that it is not possible to fully iterate an
is_flagsenum that has a zero value. This seems like an unfortunate limitation. I have frequently encountered bit-sensitive enums that include a 0 value for clearing out the bits. My code simply needs to iterate the names and values to create Lua constants, and bit-sensitive values are resource-intensive if they don't setis_flags.