Next: Intrinsic Numeric Operations
Up: Expressions and Assignment
Previous: Expressions
Expressions are often used in conjunction with the
assignment operator, =, to give values to objects. This operator,
- is defined between all intrinsic numeric types. The two operands of
= (the LHS and RHS) do not have to be the same type.
- is defined between two objects of the same user-defined
type.
- may be explicitly overloaded so that assignment
is meaningful in situations other
than those above. (A procedure can be written with two arguments of the
desired type which will define what assignment means between two object
of these types, see Section
.)
Examples,
a = b
c = SIN(.7)*12.7
name = initials//surname
bool = (a.EQ.b.OR.c.NE.d)
The LHS is an object and the RHS is an expression.
Next: Intrinsic Numeric Operations
Up: Expressions and Assignment
Previous: Expressions
Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996Not for commercial use.