HP Pascal/iX Programmer's Guide (31502-90023)

10: 4
-----------------------------------------------------------------------------------------------
| | |
| Integer | Integer subrange
m..n
with either |
| |
m
< 0 or
m
>= 0 and
n
>65535 |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Integer subrange |
m
< 0, or
m
>= 0, | Integer, or integer subrange
m..n
with |
|
m..n
|
n
> 65535 | either |
| | |
m
< 0 or
m
>= 0 and
n
>65535 |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Integer | Bit32 |
| | |
-----------------------------------------------------------------------------------------------
| | | |
| Integer subrange |
m
>= 0 and
n
<= 65535 | Integer subrange
m..n
with
m
>= 0 and |
|
m..n
| |
n
<= 65535 |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| Integer subrange |
m
>= 0 and
n
<= 65535 | Bit16 |
|
m..n
| | |
| | | |
-----------------------------------------------------------------------------------------------
| | |
| Longreal | Longreal |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Real | Real |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Record | Any type |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Set | Any type |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Shortint | Bit16 |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Shortint | Shortint |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Shortint | Integer |
| | |
-----------------------------------------------------------------------------------------------
| | |
| Shortint | Integer subrange
m..n
(except where
m
>=0 |
| | and
n
<=255) |
| | |
-----------------------------------------------------------------------------------------------
Value Parameter Compatibility.
A
value parameter
is a parameter that is passed by value. All parameters
except VAR, ANYVAR, READONLY, function, and procedure parameters are
value parameters.
An actual value parameter of a structured type (array, record,
or set) must be the same size as its corresponding intrinsic
parameter. An actual value parameter of an unstructured type must be
assignment-compatible with its corresponding intrinsic parameter.
Table 10-2 shows which intrinsic and actual value parameter types are
intrinsic-compatible. It also shows, for each intrinsic parameter type,
which of the compatible actual parameter types are converted to that