This repository was archived by the owner on Jun 13, 2020. It is now read-only.
This repository was archived by the owner on Jun 13, 2020. It is now read-only.
Open
Description
It occured to me that it would be useful to be able to specify hte size of a enum. We'd of course need a new syntax for this. I propose the following:
type Thing enum : u8 {
A = 50,
B,
C,
}
In the case of simple enums it would simply be the size of the type, in case of a union enum it would be the size of the tag.
To go with this we'd probably need a semantic check for overflow of enum members.