[Issue 11652] New: No numerical ^^ complex operation in std.complex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 30 08:42:54 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11652

           Summary: No numerical ^^ complex operation in std.complex
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: joseph.wakeling at webdrake.net


--- Comment #0 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> 2013-11-30 08:42:53 PST ---
std.complex supports exponentiation of the form complex ^^ numeric but lacks
support for numeric ^^ complex.

Example:

    auto rec = 2.0 ^^ complex(1.1, 2.2);

results in

    Error: incompatible types for ((2.00000) ^^ (complex(1.1, 2.2))): 'double'
and 'Complex!double'

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


More information about the Digitalmars-d-bugs mailing list