Why were uninitialized floating-point variables changed to quiet NaN's in v2.087?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Wed Jul 1 11:49:42 UTC 2026


On 01/07/2026 11:48 PM, Richard (Rikki) Andrew Cattermole wrote:
> ```d
> float f;
> 
> assert(f is float.init);
> ```

Errr that should be float.nan not float.init.



More information about the Digitalmars-d-learn mailing list