Bug 18258 – std.math.NaN redesign

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-17T17:45:32Z
Last change time
2024-12-01T16:32:04Z
Assigned to
No Owner
Creator
Răzvan Ștefănescu
Moved to GitHub: phobos#9737 →

Comments

Comment #0 by rumbu — 2018-01-17T17:45:32Z
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)
Comment #1 by robert.schadek — 2024-12-01T16:32:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9737 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB