Chapter 11
Using functions and procedures

Free Pascal supports the use of functions and procedures. It supports

Remark: In many of the subsequent paragraphs the words procedure and function will be used interchangeably. The statements made are valid for both, except when indicated otherwise.

 11.1 Procedure declaration
 11.2 Function declaration
 11.3 Function results
 11.4 Parameter lists
  11.4.1 Value parameters
  11.4.2 Variable parameters
  11.4.3 Out parameters
  11.4.4 Constant parameters
  11.4.5 Open array parameters
  11.4.6 Array of const
 11.5 Function overloading
 11.6 Forward defined functions
 11.7 External functions
 11.8 Assembler functions
 11.9 Modifiers
  11.9.1 alias
  11.9.2 cdecl
  11.9.3 export
  11.9.4 inline
  11.9.5 interrupt
  11.9.6 iocheck
  11.9.7 local
  11.9.8 nostackframe
  11.9.9 overload
  11.9.10 pascal
  11.9.11 public
  11.9.12 register
  11.9.13 safecall
  11.9.14 saveregisters
  11.9.15 softfloat
  11.9.16 stdcall
  11.9.17 varargs
 11.10 Unsupported Turbo Pascal modifiers