http://d.puremagic.com/issues/show_bug.cgi?id=11188
hst...@quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hst...@quickfur.ath.cx --- Comment #1 from hst...@quickfur.ath.cx 2013-10-10 11:20:06 PDT --- Does std.math.abs even work for anything other than built-in types currently? I know it should, but I'm skeptical if it does. In any case, it should take inout arguments since it doesn't (and shouldn't) modify them. So this (in theory) should work: inout(Num) abs(Num)(inout(Num) x) if ( ... ) { return (x >= 0) ? x : -x; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------