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

           Summary: Using a custom pow function for ^^
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: siegelords_ab...@yahoo.com


--- Comment #0 from siegelords_ab...@yahoo.com 2011-09-22 11:46:57 PDT ---
I want to use a custom pow function (e.g. the one from the C standard library,
or from Tango) instead of the one in std.math, but a^^b is rewritten into
std.math.pow(a, b) which makes this difficult to accomplish. I can work around
it by using a static method like so:

struct std
{
    struct math
    {
        static auto pow(real a, real b);
    }
}

But I'd rather not have to do that (it breaks std imports, for example). Can we
have ^^ rewritten into a simple pow?

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

Reply via email to