Movement against float.init being nan

Walter Bright newshound2 at digitalmars.com
Tue Aug 23 00:50:21 UTC 2022


On 8/20/2022 3:17 PM, Dukc wrote:
> it goes against what C, C++ and C# (and 
> probably many other languages) do so one is easily surprised.

C and C++ initialize them to garbage unless it is a global/static variable. 
That's probably the worst option, as it results in Heisenbugs that are very hard 
to track down.


More information about the Digitalmars-d mailing list