On 05/07/2012 03:22 AM, Andrew Wiley wrote:
I had some problems with floats being default initialized to NaN.That's still correct behavior for C, actually. Using an uninitialized variable in C results in undefined behavior, so D still complies with C requirements when it initializes floats to NaN.
For variables with static storage, C initializes them by default to zero. It's in the spec.