
Dec. 3, 2003
8:33 p.m.
So the question is, does long have operations that int doesn't have? And if so, why can't those operations be added to int? And if there's a reason, is it good enough?
If every operation that might conceivably yield an int quietly yields a long when the result doesn't fit in an int, then it is possible for int and long to have the same operations. In which case, why do they have different types? Just as an implementation detail?