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.

because __enums_layout.ptr need to be part of other object, and this const ptr cloud be included in multi objects.

Reply via email to