abs and minimum values

Dom DiSc dominikus at scherkl.de
Fri Oct 29 09:35:09 UTC 2021

On Friday, 29 October 2021 at 08:33:07 UTC, Imperatorn wrote:
> Imo abs should never be able to return a negative value

Yes, but phobos defines it to return a signed type, so 
theoretical it can return negative values. And they won't change 

I really think it should return an unsigned type, but that's a 
"breaking change".
Bullshit policy!

More information about the Digitalmars-d-learn mailing list