[Issue 17418] opCmp return value unclear
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 20 18:13:21 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=17418
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at d-ecke.de
--- Comment #2 from berni44 <bugzilla at d-ecke.de> ---
Meanwhile the definition [1] defines three cases returning an int (<, ==, >),
but as far as I know, it's also possible to have reals as return types and in
this cases NaN is a fourth possible result.
[1] https://dlang.org/phobos/object.html#.Object.opCmp
--
More information about the Digitalmars-d-bugs
mailing list