will be forwarded as result. For Throw, the function never returns because it throws an exception.
Throw.onOverflow
typeof(~ Lhs()) onOverflow(string x, Lhs)(Lhs lhs)Called automatically upon an overflow during a unary or binary operation.
Parameters
x | The operator, e.g. `-` |
lhs | The left-hand side (or sole) argument |
rhs | The right-hand side type involved in the operator |
Returns
Nominally the result is the desired value of the operator, which
Throws
CheckFailure on overflowtypeof(Lhs() + Rhs()) onOverflow(string x, Lhs, Rhs)(Lhs lhs, Rhs rhs)ditto