Does D have too many features?

Jeff Nowakowski jeff at dilacero.org
Mon May 7 21:43:15 PDT 2012


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.


More information about the Digitalmars-d mailing list