Movement against float.init being nan

claptrap clap at trap.com
Mon Aug 22 23:18:09 UTC 2022


On Monday, 22 August 2022 at 19:49:02 UTC, Dom Disc wrote:
> On Monday, 22 August 2022 at 15:04:25 UTC, claptrap wrote:
>
>> You dont initialise all variables to zero, Ive just looked at 
>> some om my code and in 4000 lines i found two default init 
>> ints and maybe 50+ explicitly initialised.
>
> So, if you rarely ever use default initialization, why do you 
> care to which value it might be initialized?

NaN or Zero I dont really care, I just got sucked in, there's a 
fair amount of BS floating around.


More information about the Digitalmars-d mailing list