plusCanDestroy

fun A_Number.plusCanDestroy(aNumber: A_Number, canDestroy: Boolean): A_Number

Add the receiver and the argument aNumber and answer the result.

Implementations may double-dispatch to addToIntegerCanDestroy or addToInfinityCanDestroy, where actual implementations of the addition operation should reside.

Return

The result of adding the operands.

Parameters

aNumber

An integral numeric.

canDestroy

true if the operation may modify either operand, false otherwise.

See also