[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:34:05 PST 2015


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

Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #6 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Let's just close. This was requested 6 years ago. Today a better approach would
be a template function which e.g. applies an unary function over a static
array. Hard-coding the functionality into abs seems like a suboptimal direction
to take today, as there is no special logic to this that is specific to abs and
would not apply to any other unary function.

--


More information about the Digitalmars-d-bugs mailing list