Movement against float.init being nan

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Thu Aug 25 09:01:38 UTC 2022


On Thursday, 25 August 2022 at 03:08:54 UTC, Steven Schveighoffer 
wrote:
> by default, and then I have to find and fix that. The only 
> thing NaN has ever done for me is found places where I forgot 
> to initialize to 0.

One big advantage of having everything default to 0 would be if 
the compiler was clever and used pre-cleared memory for arrays. 
That way you don't have to do any constructor work.



More information about the Digitalmars-d mailing list