The structure of the software module (in general form) is clearly defined:
- first comes the variable definition block
- then definitions of procedures and functions
- then the module code block
Based on the structure described above, the location of the program code before the definition of methods is unacceptable.
Incorrect
SomeMethod();
Message("Before methods definition");
Procedure SomeMethod()
// Method body
EndProcedure