[fpc-pascal] How do I load external Pascal code?
Jürgen Hestermann
juergen.hestermann at gmx.de
Fri Oct 14 07:14:36 CEST 2011
Andrew Pennebaker schrieb:
> I understand that units are designed to be reusable code / libraries
/ APIs. It's a practical way to organize code, and a pretty good name
for it, too.
In Pascal, units can have optional "initialization" and "finalization"
code (syntax as shown in the link by Jonas). For all units you link into
your program (with the "uses" clause) the initialization part is
executed on startup and the finalization part is executed before the
program ends in the order the units are loaded.
More information about the fpc-pascal
mailing list