[OT] The Usual Arithmetic Confusions

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Feb 4 20:31:58 UTC 2022


On Fri, Feb 04, 2022 at 12:24:37PM -0800, Walter Bright via Digitalmars-d wrote:
> On 2/4/2022 5:18 AM, Adam D Ruppe wrote:
> > (and what C does doesn't make a whole lot of sense.)
> 
> C was developed on a PDP-11 and the integral promotions rules come
> about because of the way the -11 instructions work. It's the same for
> the float=>double promotion rules.

PDP-11 instructions no longer resemble how modern machines work, though.
What made sense back then may not necessarily make sense anymore today.


T

-- 
To err is human; to forgive is not our policy. -- Samuel Adler


More information about the Digitalmars-d mailing list