DIP 1015--Deprecation of Implicit Conversion of Int. & Char. Literals to bool--Formal Assement
Rubn
where at is.this
Wed Nov 14 00:43:54 UTC 2018
On Monday, 12 November 2018 at 22:07:39 UTC, Walter Bright wrote:
> One could have <implicit conversion><exact> be treated as
> "better than" <implicit conversion><implicit conversion>, and
> it sounds like a good idea, but even C++, not known for
> simplicity, tried that and had to abandon it as nobody could
> figure it out once the code examples got beyond trivial
> examples.
I wonder what these examples are? What did C++ do instead, cause
something tells me it didn't do what D is doing. An enum in C++
doesn't call different function overloads based on the constant
value.
The trivial examples with D's current implementation aren't even
understood by most people it seems like.
More information about the Digitalmars-d-announce
mailing list