[Issue 18258] New: std.math.NaN redesign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 17 17:45:32 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18258
Issue ID: 18258
Summary: std.math.NaN redesign
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: rumbu at rumbu.ro
The current signature allows creation only for real NaNs with payloads. It's
impossible to create float or double NaNs with a payload.
Proposal:
Redesign NaN to allow creation of other floating point types:
T NaN(T = real, U)(const U payload) if (isFloatingPoint!T && isUnsigned!U)
--
More information about the Digitalmars-d-bugs
mailing list