Movement against float.init being nan

Ali Çehreli acehreli at yahoo.com
Fri Aug 26 18:53:33 UTC 2022


On 8/26/22 11:30, Walter Bright wrote:

 > It is. The first use case I mentioned was initializing data returned
 > from malloc to DEADBEEF. malloc returns uninitialized data, and I wanted
 > to make sure it wasn't data that just happened to be 0 and "work",
 > because therein lies heisenbugs and madness.

Microsoft's C++ compiler used to do and probably still does that. Newly 
allocated memory and freed memory are initialized with specific 
patterns. (Optionally, I think with a compiler switch.)

Ali



More information about the Digitalmars-d mailing list