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

OVERFLOW_TRAPS
enables overflow traps for a subprocedure.
NOOVERFLOW_TRAPS
disables overflow traps for a subprocedure.
parameter-spec
specifies the parameter type of a formal parameter and whether it is a value or reference
parameter, as described in Formal Parameter Specification (page 251).
subproc-body
is a BEGIN-END block that contains sublocal declarations and statements—see Subprocedure
Body (page 259).
FORWARD
means the subprocedure body is declared later in this procedure.
Subprocedure Body
A subprocedure body can contain sublocal declarations and statements.
sublocal-decl
is a declaration for one of:
simple variable
array (direct or read-only)
structure (direct only)
simple pointer
structure pointer
equivalenced variable
LITERAL
DEFINE
label
entry point
statement
is any statement described in Chapter 12 (page 199).
In subprocedures, declare pointers and directly addressed variables only. Here are examples:
ExampleSublocal Variable
INT var;Simple variable (always direct)
INT array[0:5];Direct array
INT ro_array = 'P' := [0,1,2,3,4,5];Read-only array
INT var;Simple variable (always direct)
Subprocedure Body 259