[Issue 14035] string concatenation accepts ints in templates
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Mar 21 22:59:11 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14035
--- Comment #11 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Kenji Hara from comment #9)
> and disallow conversions beyond the categories for non-polymorphic literals
> (eg. `4` type with uint).
Of course, even inside same category, loss of precision should also be
disallowed.
eg. A implicit conversion from a floating literal `3.14` typed real to int will
loss the precision, so it should be disallowed.
--
More information about the Digitalmars-d-bugs
mailing list