Movement against float.init being nan
Zoadian
no at no.no
Tue Aug 23 11:08:36 UTC 2022
On Tuesday, 23 August 2022 at 00:50:21 UTC, Walter Bright wrote:
> 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.
I agree that NaN for uninitialized floats is the best option.
However, can we get a switch to force initialization of floats?
it would be of great help to quickly find the place where one
forgot to initialize a variable.
More information about the Digitalmars-d
mailing list