DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement
Walter Bright
newshound2 at digitalmars.com
Mon Nov 12 21:38:27 UTC 2018
On 11/12/2018 8:28 AM, 12345swordy wrote:
> The issue that I see is unintended implicit conversation when passing values to
> functions that have both int and bool overloads.
The exact same thing happens when there are both int and short overloads.
The underlying issue is is bool a one bit integer type, or something special? D
defines it as a one bit integer type, fitting it into the other integer types
using exactly the same rules.
If it is to be a special type with special rules, what about the other integer
types? D has a lot of basic types :-)
More information about the Digitalmars-d-announce
mailing list