sysutils

From Lazarus wiki
Revision as of 15:12, 24 January 2021 by Kai Burghardt (talk | contribs) (Caveats: cf. discussion)

English (en) français (fr)

The unit sysUtils shipped with the FPC’s default run-time library provides many system utilities. It attempts to be as compatible to Delphi’s sysUtils unit as possible. However, the FPC version is available on all platforms that the FPC supports. It does not contain any Windows-related routines or other highly platform-specific functionality.

Notable functionality

Caveats

If the sysUtils unit is included, all run-time errors become exceptions, which virtually forces you to use a compiler mode (or mode switch) that allows exception treatment. To catch an exception by its name you will need to include sysUtils, even though the unit itself does not use any of the included system utilities.

If size matters, using sysUtils is by design not the smartest choice.

See also