[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
function function identifier: function result type; declaration part begin statement part end; |
function function identifier (parameter list): funcion result type; declaration part begin statement part end; |
A function is a subroutine which has a return value of type function result type. It is structured like the program: the declaration part consists of label, constant, type, variable or subroutine declarations in free order. The statement part consists of a sequence of statements. If parameter list is specified, parameters can be passed to the function and can be used in statement part. The return value is set via an assignment:
function identifier := expression |