5.1   Procedure Types

HDevelop supports different types of procedures. The type is specified when a procedure is created, and determines the location of the procedure in the file system.

 
Each program file contains exactly one main procedure and zero to multiple local procedures.

 
Local procedures are stored inside the HDevelop program and cannot be called from other programs or external procedures.

 
External procedures are stored as separate files, and can be shared between different HDevelop programs. A modification immediately affects all HDevelop programs using it when reloaded. Each procedure file contains a single external procedure. The file name determines the name of the procedure. Thus, if the file name is changed, programs and other procedures using it will have to be adapted.
 
Libraries contain a collection of (typically related) procedures in a single file. They share the same properties as a collection of external procedures in a single directory. The idea of creating a library is to keep related procedures as a unit.

If the type of an existing procedure is changed, the procedure resolution might be affected (see section “Procedure Resolution”).