Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
Function and Procedure Types
◄Reference Types► ◄Contents► ◄Index► ◄Back►
TYPE
<identifier> = FUNCTION[ ( <parameter list> ) ] : <return type>;
<identifier> = PROCEDURE[ ( <parameter list> ) ];
Description
Function and procedure types are reference types. That is, a
variable of a function or procedure type is actually a pointer to
that function or procedure. However, unlike pointer types,
variables of function and procedure types don't have to be
explicitly dereferenced with a caret (^). Function and procedure
types are dereferenced with the variable's name. Variables of
function and procedure types can be passed as parameters and have
values assigned to them. A function cannot return a function or
procedure type.
See also: FUNCTION, Pointer, PROCEDURE