I had filed that last week: https://issues.dlang.org/show_bug.cgi?id=18346 Issue 18346 - implicit conversion from int to char in `"foo" ~ 255` should be illegal
we should deprecate it. On Mon, Feb 5, 2018 at 7:14 PM, Nick Sabalausky (Abscissa) via Digitalmars-d <[email protected]> wrote: > On 02/05/2018 09:30 PM, Walter Bright wrote: >> >> On 2/5/2018 3:18 PM, Timon Gehr wrote: >>> >>> The overloading rules are fine, but byte should not implicitly convert to >>> char/dchar, and char should not implicitly convert to byte. >> >> >> Maybe not, but casting back and forth between them is ugly. > > > It *should* be ugly, it's conflating numerics with partial-characters. > > Which, depending on the situation, you should either A. not be doing at all, > or B. Be really freaking explicit about the fact that "yes, I know I'm > mixing numerics with partial-characters here and it's for this very good > reason XYZ." This isn't the age of ASCII. I can see how it could've been a > pain in ASCII-land, but D doesn't live there.
