9.1.2 Procedure statements

Procedure statements are calls to subroutines. There are dierent possibilities for procedure calls: A normal procedure call, an object method call (fully qualied or not), or even a call to a procedural type variable. All types are present in the following diagram.

_________________________________________________________________________________________________________ Procedure statements
-- --procedure statement-||--procedure identi  er---|--------------------
                       |---method identi  er---| -actual parameter list-
                       -quali- ed method identi- er
                           variable reference
___________________________________________________________________

The Free Pascal compiler will look for a procedure with the same name as given in the procedure statement, and with a declared parameter list that matches the actual parameter list. The following are valid procedure statements:

Usage;  
WriteLn('Pascal is an easy language !');  
Doit();