[Issue 6715] New: Using a custom pow function for ^^
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 22 11:47:25 PDT 2011
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: nobody at puremagic.com
ReportedBy: siegelords_abode at yahoo.com
--- Comment #0 from siegelords_abode at 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: -------
More information about the Digitalmars-d-bugs
mailing list