[Issue 13929] nothrow @nogc gcd with signed integers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 26 23:59:47 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=13929
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |greensunny12 at gmail.com
Resolution|--- |FIXED
--- Comment #2 from Seb <greensunny12 at gmail.com> ---
This works since 2.072.2: https://run.dlang.io/is/1CXrc8
> gcd(a,b) = gcd(|a|,|b|) = gcd(|a|,b) = gcd(a,|b|) - is there a technical reason we reject negative instead of using abs on possible negative(i.e, T.min < 0)?
Please open a separate issue or thread on NG.learn for this.
--
More information about the Digitalmars-d-bugs
mailing list