Annoyance with new integer promotion deprecations
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Tue Feb 6 00:18:08 UTC 2018
On Monday, February 05, 2018 15:27:45 H. S. Teoh via Digitalmars-d wrote:
> On Mon, Feb 05, 2018 at 01:56:33PM -0800, Walter Bright via Digitalmars-d
wrote:
> > The idea is a byte can be implicitly converted to a dchar, [...]
>
> This is the root of the problem. Character types should never have been
> implicitly convertible to/from arithmetic integral types in the first
> place.
+1
Occasionally, it's useful, but in most cases, it just causes bugs -
especially when you consider stuff like appending to a string.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list