Free Pascal Compiler adds support for dynamic packages
The Free Pascal Compiler (FPC) team has added support for dynamic packages, letting developers compile and load Lazarus-style package files such as .lpk units at runtime. The example shared includes a sample ElectroTools package with unit files and a TPackageType record exposing RTTI details like unit name, type name, type kind and class information.
GoKawiil's interpretation of the reporting above, not reported fact.
Dynamic package loading could let Pascal applications extend functionality at runtime without recompiling the whole program, similar to plugin systems in other languages. This may appeal to developers building modular or extensible Lazarus/FPC applications, though the practical impact will depend on tooling and documentation maturity.
- FPC now supports dynamic packages, a feature previously more associated with Delphi-style development.
- Example code shows a TPackageType record exposing RTTI data such as unit name, type kind, and class type.
- The feature could enable runtime-loaded plugins or modules in Pascal applications built with FPC/Lazarus.
Source: getlazarus.org, 2026-10-18
Published there as: “Free Pascal compiler now supports dynamic packages”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.