Comment on NaNs Just Don't Get No RespectparentComments−duaneb14yExcept this is actually worse, since there are many possible values which evaluate to NaN.EDIT: I do not know how D implements NaNs; they may have magic to make them more sane to work with.−WalterBright14yD does not implement NaNs, it just relies on the IEEE FP hardware to do it.What D does do is expose NaNs so the programmer can rely on their existence and use them in a straightforward manner.
Comments
Except this is actually worse, since there are many possible values which evaluate to NaN.
EDIT: I do not know how D implements NaNs; they may have magic to make them more sane to work with.
D does not implement NaNs, it just relies on the IEEE FP hardware to do it.
What D does do is expose NaNs so the programmer can rely on their existence and use them in a straightforward manner.