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.
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.
Return to corresponding overview page
Next: Intrinsic Numeric Operations
Up: Expressions and Assignment
Previous: Expressions
©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997Not for commercial use.