Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-06

initialization and finalization of units?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

David Pethes
to Francisco Reyes

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.

Reply by email