HP 3000 Manuals

Operands [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

Operands 

An operand denotes the object that operators use in obtaining a value.
An operand may be a literal, a declared constant, a variable access 
(variable), a set constructor, a dereferenced pointer, or the value of
another expression.  Function calls are also operands in the sense that
they return a result that an operator can use to compute another value.

An operand may be acted upon by an operator.  Performing an operation on
operands of different types is called mixing data types.  In all cases
except one, you cannot mix data types.  You can, however, mix reals and
integers with an operator that allows two real operators.  Table 4-1  
provides a list of operands and tells where they are described in the
manual.

          Table 4-1.  HP Pascal Operands 

---------------------------------------------------------
|                           |                           |
|          Operand          |          Chapter          |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| literal                   |             4             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| constant                  |             4             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| variable                  |             5             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| set constructor           |             4             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| function call             |            4,8            |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| dereferenced pointer      |             4             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| array selector            |             4             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| record selector           |             4             |
|                           |                           |
---------------------------------------------------------
|                           |                           |
| file buffer selector      |             4             |
|                           |                           |
---------------------------------------------------------



MPE/iX 5.0 Documentation