Operators
In addition to intrinsic functions there are operators which work on one or more parameters. Common examples of these are the addition
operator +
, the unary negation operator -
which converts a value to its opposite, in some sense
depending on the value type, and the comparison operators, ==
, <
etc., which return a boolean value
that depends on a comparison between the left and right operands. It should be noted that operators operate on values, not objects. For
example the code:
integer i integer j i = 3 j = - i
does not change the value in the object referred to by i
from 3
, it takes the value from that object,
negates the value only, and assigns the result to j
.