Things C++ 20 Deliberately Broke

Steven Schveighoffer schveiguy at gmail.com
Mon Sep 26 22:15:49 UTC 2022


On 9/25/22 7:01 PM, Walter Bright wrote:
> https://docs.google.com/presentation/d/1HwLNSyHxy203eptO9cbTmr7CH23sBGtTrfOmJf9n0ug/edit?usp=sharing&resourcekey=0-GH5F3wdP7D4dmxvLdBaMvw 
> 
> 
> https://news.ycombinator.com/item?id=32969957
> 

 From the document:

 > Math between disparate enums is deprecated

Why? Why can't you add one enum to another when they are based on int, 
as long as it's typed as int?

I'm honestly curious as to the problems this is solving.

-Steve


More information about the Digitalmars-d mailing list