Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1
XavierAP
n3minis-git at yahoo.es
Wed Nov 23 16:13:49 UTC 2022
On Wednesday, 23 November 2022 at 15:13:09 UTC, 12345swordy wrote:
>
> That doesn't work when interacting with existing c code base
> here.
Funny thing is, because C enums being unqualified and not
strongly typed was considered a problem, C got into the habit of
repeating every enum's type name in every of its values e.g.
enum IMG_INIT { IMG_INIT_jpg, IMG_INIT_png }
P.S. of course it doesn't work for that. But interoperating with
C isn't the problem here, because C enums don't map to D enums
but to integers?
More information about the Digitalmars-d
mailing list