ImportC with typedef anonymous enums

Imperatorn johan_forsberg_86 at hotmail.com
Wed Nov 9 18:20:18 UTC 2022


On Wednesday, 9 November 2022 at 17:48:14 UTC, rmc wrote:
> Could we make enums work the way structs do in importC?
>
> For example (example2d.d):
> ```
> import example2;
>
> [...]

Just a sidenote, but for some reason, casting it like this works:
someFunc2((cast(typeof(my_struct.opts))eopt));


More information about the Digitalmars-d mailing list