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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 16 22:12:07 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18244

--- Comment #4 from hsteoh at 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.  Of course, fabs can
still be left as an alias to abs() for backward compatibility.

We should probably file a separate bug to track this issue.

--


More information about the Digitalmars-d-bugs mailing list