Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1
monkyyy
crazymonkyyy at gmail.com
Mon Nov 21 15:27:46 UTC 2022
On Friday, 18 November 2022 at 15:37:31 UTC, Mike Parker wrote:
> ## D
The issue is that c bindings tend to be verbose; so what if
importc(with a flag?) flattened enums into global scope,
mimicking c
given `enum foo{a,b}` in a .c; is traslated to `enum a=0; enum
b=1` In the internal ast; so`foo bar=a` works in a .d
More information about the Digitalmars-d
mailing list