Sign in Join
Wiki copytemporary

Local: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Local

OldNewLine
1+Back to [[Reserved words]].
2+
3+The **local** modifier is part of Linux programming and has no meaning for Windows. It was introduced for compatibility with Kylix.
4+
5+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.
6+
7+``` pascal
8+ procedure subHello(); local;
9+ begin
10+ ...
11+ end;
12+```
13+
14+---
15+*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](/wiki-contact).*

Back to history