www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9156] New: std.complex inconsistency between `std.complex.Complex` vs `std.complex.complex`

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9156

           Summary: std.complex inconsistency between
                    `std.complex.Complex` vs `std.complex.complex`
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: monarchdodra gmail.com



Basically, the constructor vs the convenience function:

//----
import std.stdio;
import std.complex;
void main()
{
   Complex!double c1 = Complex!double(1);
   Complex!double c2 = complex!double(1);
   c1.writeln(); // 1+nani
   c2.writeln(); // 1+0i
}
//----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 14 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9156




https://github.com/D-Programming-Language/phobos/pull/1005

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 14 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9156


monarchdodra gmail.com changed:

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



Verified fixed by monarchdodra on 17 dec 2012.

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