pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

width
is a constant expression that specifies the number of bits in the variable. The result of
the constant expression must be one of the following values:
widthData Type
16, 32, or 64INT
32 or 64REAL
A value in the range 1 through 31UNSIGNED
UNSIGNED parameters must be passed by value; you cannot use an indirection symbol
(see Table 14 (page 41)) with UNSIGNED parameters.
fpoint
is an integer in the range -19 through 19 that specifies the implied decimal point
position. The default is 0 (no decimal places). A positive fpoint specifies the number
of decimal places to the right of the decimal point. A negative fpoint specifies a
number of integer places to the left of the decimal point.
*
prevents scaling of the fpoint of a FIXED actual parameter to match the fpoint in
the parameter specification. Such scaling might cause loss of precision. The called
procedure treats the actual parameter as having an fpoint of 0.
Indirection
., .EXT, .EXT32, .EXT64, .SG, and .SGX are indirection symbols (see Table 14 (page 41)).
NOTE: “Indirection Symbols” (page 41), .EXT32 and .EXT64 are 64-bit addressing
functionality added to the EpTAL compiler starting with SPR T0561H01^AAP. For more
information, see Appendix E, “64-bit Addressing Functionality” (page 531).
param-name
is the identifier of a formal parameter. The identifier has local scope if declared in a procedure
or sublocal scope if declared in a subprocedure.
referral
is the identifier of a previously declared structure or structure pointer. The diagram under
param-type describes lists the kind parameter requiring a referral.
REFALIGNED
For simple pointers, the default for REFALIGNED is the value you specify in the REFALIGNED
(page 510).
2
specifies that the variables and structures that identifier references are aligned as they would
be aligned in TAL (and might not be well-aligned in pTAL).
8
specifies that the variables and structures are well-aligned in pTAL (and in TAL, that they might
have more space).
For nonstructure pointers, the default for REFALIGNED is the value you specify in the
REFALIGNED (page 510).
When a procedure is called, each actual parameter is bound to its corresponding formal parameter.
Parameters passed by value must follow the same rules for assignment compatibility as do assignment
statements. Each actual value parameter corresponds to the right side of an assignment statement.
Table 57 (page 254) lists the characteristics that you can declare in a formal parameter specification
depending on the kind of actual parameter the procedure or subprocedure expects.
Formal Parameter Specification 253