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.
Local procedures are stored inside the HDevelop program. Each program contains at least the “main” procedure. Local procedures cannot be called from other programs or external procedures.
External procedures are stored as separate files, and can be shared between different HDevelop programs. The modification of an external procedure immediately affects all HDevelop programs using it. There are two types of external procedures:
Each procedure file contains a single external procedure. The file name determines the name of the procedure. Thus, if the file name of an external procedure 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”).