Can we disallow appending integer to string?
Stanislav Blinov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Apr 19 10:56:18 PDT 2017
On Wednesday, 19 April 2017 at 17:34:01 UTC, Jonathan M Davis
wrote:
> Personally, I think that we should have taken the stricter
> approach and not had integral types implicit convert to
> character types, but from what I recall, Walter feels pretty
> strongly about the conversion rules being the way that they are.
Yep, me too. Generally, I don't think that an implicit conversion
(T : U) should be allowed if T.init is not equivalent to U.init.
More information about the Digitalmars-d-learn
mailing list