DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement

Chris M. chrismohrfeld at comcast.net
Tue Nov 13 16:28:47 UTC 2018


On Tuesday, 13 November 2018 at 16:26:55 UTC, Chris M. wrote:
> On Monday, 12 November 2018 at 09:45:14 UTC, Mike Parker wrote:
>> [...]
>
> I was going to write something up about how you can't do 
> arithmetic on bool types therefore they aren't integral, but I 
> tested and realized D allows this (i.e. bool + bool, bool * 
> bool). Still that seems nonsensical, so I guess my question 
> what is the definition of an integral type and how does bool 
> fit?

Addendum: definition of an integral type in Walter/Andrei's mind


More information about the Digitalmars-d-announce mailing list