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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to