Discussion Thread: DIP 1044--Enum Type Inference--Community Review Round 1

Timon Gehr timon.gehr at gmx.ch
Sun Nov 20 21:58:01 UTC 2022


On 20.11.22 22:32, Walter Bright wrote:
> 
> But yes, it would be a (small) breaking change.

I really wouldn't want to run into this:

```d
enum Role{
     guest,
     member,
     developer,
}

void main(){
     Role r;
     writeln(r); // error
}
```

Too messy for me, but up to you.


More information about the Digitalmars-d mailing list