[Issue 3561] math.abs signature accepts static arrays, but errors internally.

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Nov 3 12:16:21 PST 2015


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #4 from hsteoh at quickfur.ath.cx ---
I think this is a bit misplaced. If some people feel the need for std.math
functions to work with static arrays, or vectors, or matrices, or whatever else
their application needs, couldn't they just implement their own overloads for
this purpose?  I'm not sure I see the need for abs(), or any other math
function, to have built-in support for static arrays, or any other conglomerate
types.  I'm sure some applications out there would love to have this, but it
seems to be a rather niche need.

--


More information about the Digitalmars-d-bugs mailing list