On Tuesday, 13 September 2022 at 10:59:36 UTC, Dennis wrote:
On Tuesday, 13 September 2022 at 10:45:03 UTC, test123 wrote:
Is there a way to init the __gshared fixed length
upb_MiniTable_Enum array ?
I don't think so. You could leave your array typed as
`validate_KnownRegex_enum_init_type` and access it through a
function that casts it to `upb_MiniTable_Enum`.
Side node, you can use `immutable` instead of `__gshared
const`, it amounts to the same for global variables.
replace with immutable get this error:
```d
static variable `__enums_layout` cannot be read at compile time
```