abs(int8) returns int8?

2020-09-23 Thread marusu
I got a thought that throwing overflow exception is one of the right way. Thanks.

abs(int8) returns int8?

2020-09-23 Thread marusu
Thank you. I understood it is common spec for many languages and explicit casting is required for Nim.

abs(int8) returns int8?

2020-09-23 Thread marusu
According to the document, abs(int8) returns int8 but in the case of -128, abs(-128)=128 cannot stored into int8, right?