[Issue 9156] New: std.complex inconsistency between `std.complex.Complex` vs `std.complex.complex`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 14 01:57:25 PST 2012


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 at puremagic.com
        ReportedBy: monarchdodra at gmail.com


--- Comment #0 from monarchdodra at gmail.com 2012-12-14 01:57:13 PST ---
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: -------


More information about the Digitalmars-d-bugs mailing list