need help to translate C into D
Dennis
dkorpel at gmail.com
Tue Sep 13 10:59:36 UTC 2022
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.
More information about the Digitalmars-d-learn
mailing list