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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 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: -------