Deprecate implicit conversion between signed and unsigned integers
Dom DiSc
dominikus at scherkl.de
Thu Feb 20 08:35:10 UTC 2025
On Thursday, 20 February 2025 at 03:14:08 UTC, Jonathan M Davis
wrote:
> IIRC, _all_ operations on integer types smaller than int get
> converted to int,
Yup.
> ~x would probably implicitly convert, but like you, I'd have to
> test it.
~ on small types will generate a lot of higher set bits, so no,
it will NOT convert back to same type. Same problem with -
This is so bad, I'm honestly surprised that it works with +
More information about the dip.ideas
mailing list