Summary: Using a custom pow function for ^^
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 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:
------- You are receiving this mail because: -------

Reply via email to