Overloaded operators: Difference between revisions
Content added Content deleted
(Added Algol 68) |
|||
Line 18: | Line 18: | ||
=={{header|ALGOL 68}}== |
=={{header|ALGOL 68}}== |
||
This overrides the standard integer + operator and provides an overloaded TOSTRING operator. |
This overrides the standard integer + operator (as in the F# sample) and provides an overloaded TOSTRING operator. |
||
Also, the + operator is overloaded to operate on an INT left-hand operand and a BOOL right-hand operand. |
Also, the + operator is overloaded to operate on an INT left-hand operand and a BOOL right-hand operand. |
||
<lang algol68>BEGIN |
<lang algol68>BEGIN |