Default Argument Improvements?

Brian Byrne bdbyrne at
Thu Feb 1 20:48:51 PST 2007

Frits van Bommel Wrote:
> Those assignments always set the variables to in_*.
> The funny thing about NaNs: all normal comparisons return false. Use 
> std.math.isnan(in_x) instead of (in_x == float.nan) if you prefer code 
> that works ;).

Ah yes, good call! Forgot about that. :)

Thanks for the heads up,
Brian Byrne

More information about the Digitalmars-d-learn mailing list