Sign in Join
Wiki copytemporary

Local

Deutsch · English

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.

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

From the Free Pascal wiki, page "Local", as it stood on 2020-02-19 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.