[OT] The Usual Arithmetic Confusions
Adam Ruppe
destructionator at gmail.com
Wed Feb 2 23:37:34 UTC 2022
On Wednesday, 2 February 2022 at 23:27:05 UTC, Walter Bright
wrote:
> One of the (largely hidden because it works so well) advances D
> has over C is Value Range Propagation, where automatic
> conversions of integers to smaller integers is only done if no
> bits are lost.
D's behavior is worse than C's in actual use. This is a source of
constant annoyance when doing anything with the byte and short
types.
The value range propagation only works inside single expressions
and is too conservative to help much in real code.
More information about the Digitalmars-d
mailing list