Add -wnan switch to flag default NaN initializations

monkyyy crazymonkyyy at gmail.com
Fri Aug 21 17:17:50 UTC 2026


On Friday, 21 August 2026 at 07:22:29 UTC, Walter Bright wrote:
> wondered why I hadn't thought of it before.

Surely its been suggested for years

If your finally convinced its time to resolve the float mess; 
theres going to be dozens of little details and it should be a 
package deal. see: 
https://github.com/dlang/dmd/issues/23666#issuecomment-5372588419 
there will be dozens of these if you open the debate in earnest

*IF* the goal is to keep float.nan and have a flag that errors 
out for team 0; fine, but you should define the stable "number-y" 
api so it becomes tractable to write terse templates 
https://forum.dlang.org/post/obkghamdrvjibmxrfktg@forum.dlang.org


More information about the Digitalmars-d mailing list