EDIT: I do not know how D implements NaNs; they may have magic to make them more sane to work with.
What D does do is expose NaNs so the programmer can rely on their existence and use them in a straightforward manner.
What D does do is expose NaNs so the programmer can rely on their existence and use them in a straightforward manner.