On Thursday, 29 August 2013 at 07:51:40 UTC, Jonathan M Davis wrote:
[..]
as any integral value in a float will fit in an
int.
[..]

Will it? Most of them will not fit, but cast to int produces nonsensical value anyway as in this example:

cast(int)float.max

With to!int you get a proper warning.

Reply via email to