Local

From Lazarus wiki
Revision as of 03:03, 19 February 2020 by Trev (talk | contribs) (English translation of German page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en)


Back to Reserved words.


The local modifier is part of Linux programming and has no meaning for Windows. It was introduced for compatibility with Kylix.

The local modifier allows the compiler to optimize functions/procedures. A local function/procedure cannot be in the interface section of a unit. A local function/procedure can only be in the implementation section of the unit from which it follows that it cannot be exported from a library.

 procedure subHello(); local;
 begin
   ...
 end;