TAL Reference Manual

Procedures
TAL Reference Manual526371-001
13-2
Procedure Declaration
Procedure Declaration
A procedure is a program unit that is callable from anywhere in the program. You
declare a procedure as follows:
type
specifies that the procedure is a function that returns a result and indicates the
data type of the returned result. type can be any data type described in Section 3,
Data Representation.
identifier
is the procedure identifier to use in the compilation unit.
public-name-spec
has the form:
public-name
is the procedure name to use in Binder, not in the compilation unit. Use this option
only in a D-series EXTERNAL procedure declaration. If you omit this option,
identifier is the default public-name. public-name must conform to the identifier
rules of the language in which the external procedure is written. For all languages
except C, the compiler upshifts
public-name automatically.
VST1301.vsd
identifierPROC
type public-name-spec
;
parameter-list proc-attribute
,
param-spec
;
proc-body
EXTERNAL
FORWARD
;
VST1302.vsd
public-name
= ""