The prime example is this:byte b = -128; int x = -b; What would you expect x to be? a) 128 b) -128
Neither nor. I would prefer the codomain of "-" be the range of byte
and hence an exception thrown in that case.
kdevel via Digitalmars-d-learn Sat, 24 Feb 2018 15:00:29 -0800
The prime example is this:byte b = -128; int x = -b; What would you expect x to be? a) 128 b) -128
Neither nor. I would prefer the codomain of "-" be the range of byte
and hence an exception thrown in that case.