[Issue 6154] std.math.abs on std.complex numbers too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 14 13:26:50 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6154



--- Comment #4 from kennytm at gmail.com 2011-06-14 13:22:08 PDT ---
(In reply to comment #2)
> (In reply to comment #1)
> 
> >     auto m2 = map!`a.abs()`(array2);
> 
> Right. But std.math.abs has to work on complex numbers too, as before, for
> polymorphism, and for a serious integration of complex numbers in Phobos.

Right, but why must it be std.math.abs? Putting the free function as
std.complex.abs works too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list