The “unsigned for value range” antipattern—Arthur O’Dwyer

Save to:
Instapaper Pocket Readability

What do you think?

The “unsigned for value range” antipattern

by Arthur O’Dwyer

From the article:

Background: Signed Integers Are (Not Yet) Two’s Complement
At the WG21 committee meeting which is currently underway in Jacksonville, JF Bastien will be presenting a proposal to make C++’s int data type wrap around on overflow. That is, where today the expression INT_MAX + 1 has undefined behavior, JF would like to see that expression formally defined to come out equal to INT_MIN...

Add a Comment

Comments are closed.

Comments (0)

There are currently no comments on this entry.