floats default to NaN... why?

Jerome BENOIT g6299304p at rezozer.net
Sat Jun 9 19:13:04 PDT 2012



On 10/06/12 02:49, Jonathan M Davis wrote:
> On Sunday, June 10, 2012 02:32:18 Jerome BENOIT wrote:
>> I see. So the alternative, to get a kind of NaN effect, would be to set
>> integers to their hardware extremum (INT_MAX,SIZE_MAX,...). But this option
>> is hardware dependent, so zero as default for integers sounds the best
>> option.
>
> ??? All integral types in D have fixed sizes.

Sorry, I forgot this part.


Jerome


More information about the Digitalmars-d-learn mailing list