[fpc-pascal] initialization and finalization of units?

David Pethes imcold at imcold.evilhosting.org
Sun Jun 3 08:50:27 CEST 2007


Hi,

Francisco Reyes wrote:
> Looking at units in ref.pdf I see an initialization and a finalization 
> section.
> 
> How are those used?

the code in initialization part will be executed right after you run 
your program, before the main begin..end, and the code in finalization 
section will be executed after the final end. or after calling Halt.



More information about the fpc-pascal mailing list