https://issues.dlang.org/show_bug.cgi?id=8562
safety0ff.bugz changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=8562
hst...@quickfur.ath.cx changed:
What|Removed |Added
CC||hst...@quickfur.ath.cx
--
http://d.puremagic.com/issues/show_bug.cgi?id=8562
--- Comment #6 from Caligo 2012-08-20 11:46:03 PDT ---
(In reply to comment #5)
ok, so pow() calls exp2(), which contains tons of asm statements, which means
pow() can't be executed at compile time.
--
Configure issuemail: http://d.puremagic
http://d.puremagic.com/issues/show_bug.cgi?id=8562
--- Comment #5 from Caligo 2012-08-20 10:23:00 PDT ---
(In reply to comment #4)
great, I didn't know about __ctfe.
Now isInfinity() is failing at compile time because of the same reasons as
isNaN(). How do you check to see if a floating poin
http://d.puremagic.com/issues/show_bug.cgi?id=8562
Jonathan M Davis changed:
What|Removed |Added
CC||jmdavisp...@gmx.com
--- Comment #4
http://d.puremagic.com/issues/show_bug.cgi?id=8562
--- Comment #3 from Caligo 2012-08-20 09:57:19 PDT ---
(In reply to comment #2)
> isNan(x) can be implemented at compile time by:
>
> return (x != x);
>
> It's not exactly the same at run time, because it sets the floating point
> hardware ex
http://d.puremagic.com/issues/show_bug.cgi?id=8562
Don changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
--- Comment #2 from Don 2
http://d.puremagic.com/issues/show_bug.cgi?id=8562
--- Comment #1 from Caligo 2012-08-19 22:09:30 PDT ---
yup, it's math.isNaN().
template T() {
enum a = isNaN(1.3);
}
unittest
{
alias T!() t;
}
/home/b/phobos/std/math.d(2369): Error: Cannot convert &real to ushort* at
compile time
t.d(4