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

Adam D. Ruppe destructionator at gmail.com
Mon Nov 12 19:28:03 UTC 2018


On Monday, 12 November 2018 at 18:25:22 UTC, Bastiaan Veelo wrote:
> I can’t say I have a strong opinion on this, but possibly it 
> would be right to have an integral “bit” type to differentiate 
> it from the Boolean type, just like we have a “byte” type to 
> differentiate it from “char”...

D used to have a `bit` type, waaaay back in the day. It was 
renamed to `bool` way back in D 0.148, released Feb 25, 2006.

And BTW D 0.149 includes this under the bugs fixed section: 
"Implicit casts of non-bool to bool disallowed".

What happened since then?


More information about the Digitalmars-d-announce mailing list