User Tools

Site Tools

Navigation:  Language Reference > 2 - Program Source Code Format > Prototype Attributes >====== TYPE (specify PROCEDURE type definition) ====== Previous pageReturn to chapter overviewNext page



The TYPE attribute specifies a prototype that does not reference an actual PROCEDURE. Instead, it defines a prototype name to use in other prototypes to indicate the type of procedure passed to another PROCEDURE as a parameter.

When the name of the TYPEd prototype is used in the parameter list of another prototype, the procedure being prototyped will receive, as a passed parameter, the label of a PROCEDURE that has the same type of parameter list (and has the same return type, if it returns a value).



ProcType PROCEDURE(FILE),TYPE       !Procedure-parameter type definition

MyFunc3  PROCEDURE(ProcType),STRING !ProcType procedure-parameter, returning a STRING,

END                                ! must be passed the label of a procedure that

                                   !takes a FILE as a required parameter

See Also:

PROCEDURE Prototypes

Prototype Parameter Lists

type_specify_procedure_type_definition_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)