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

Walter Bright newshound2 at digitalmars.com
Tue Nov 22 17:51:27 UTC 2022


On 11/21/2022 5:22 PM, Timon Gehr wrote:
> Some other languages require some annotation on the enum to indicate that it is 
> to be used as flags and disallow arithmetic otherwise, writeln could pick that 
> up also and format it nicely as a|b.

It's not perfect, but at some point adding more complexity to try to fix it 
becomes a larger problem.


More information about the Digitalmars-d mailing list