[Issue 17639] std.math.approxEqual accepts return of isNaN (bool) as argument
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 12 03:39:54 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17639
Simen Kjaeraas <simen.kjaras at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |simen.kjaras at gmail.com
Resolution|--- |INVALID
--- Comment #1 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
There's nothing particular about approxEqual in this case - at least 26 out of
70 functions in std.math accept bools for at least one of their parameters.
This bug report basically boils down to this code:
float f = false;
This compiles and is valid D. (and the value of f is 0)
--
More information about the Digitalmars-d-bugs
mailing list