[Issue 18244] Generic functions in std.math cannot be overloaded

2019-12-12 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 berni44 changed: What|Removed |Added CC||bugzi...@d-ecke.de --- Comment #8 from berni44 --

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 hst...@quickfur.ath.cx changed: What|Removed |Added CC||hst...@quickfur.ath.cx --- Comment #

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 hst...@quickfur.ath.cx changed: What|Removed |Added Keywords||pull --- Comment #2 from hst...@quic

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 --- Comment #3 from Răzvan Ștefănescu --- NaN assumes that you want to create a real nan; The correct signature will be in my opinion: NaN(F, T)(const T payload) if (isFloatingPoint!T && isUnsigned!T) This will allow to create float or double NaNs

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 --- Comment #4 from hst...@quickfur.ath.cx --- Huh. I'm surprised there's such a thing as fabs in std.math. :-P I agree that we should just unify everything under abs(). This is not C, where we can't overload abs() for integer vs. float arguments. O

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 --- Comment #5 from hst...@quickfur.ath.cx --- W.r.t NaN, I agree it would be nice to be able to specify the exact type desired. I don't think the payload has to be a template parameter; it should just be ulong since all unsigned integral types will c

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|-

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-01-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 --- Comment #6 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/113579ec6be26777198a2e13abe9913226a385e6 Fix issue 18244: Generic functions in std.math need to h

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/a74271be4c93cf95905265597ac9bca426378f55 Revert "Issue 18244: std.math generic functions need to

[Issue 18244] Generic functions in std.math cannot be overloaded

2018-02-24 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 hst...@quickfur.ath.cx changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Issue 18244] Generic functions in std.math cannot be overloaded

2021-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 Ate Eskola changed: What|Removed |Added CC||ajiesk...@gmail.com Severity|blocker

[Issue 18244] Generic functions in std.math cannot be overloaded

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18244 Iain Buclaw changed: What|Removed |Added Priority|P1 |P2 --