Go backward to
Go up to
Go forward to
Preview of Fun
Overloading and Coercion
Distinction may be blurred:
3 + 4 3.0 + 4 3 + 4.0 3.0 + 4.0
Different explanations possible:
has four overloaded meanings.
has two overloaded meanings (integer and real addition) and integers may be coerced to reals.
is real addition and integers are always coerced to reals.
Overloading and/or coercion or both!
For history of type evolution see
Last Modification: May 27, 1998