https://wiki.freepascal.org/index.php?title=Local&feed=atom&action=historyLocal - Revision history2024-03-28T08:42:21ZRevision history for this page on the wikiMediaWiki 1.35.6https://wiki.freepascal.org/index.php?title=Local&diff=132605&oldid=prevTrev: English translation of German page2020-02-19T01:03:28Z<p>English translation of German page</p>
<p><b>New page</b></p><div>{{local}}<br />
<br />
<br />
Back to [[Reserved words]].<br />
<br />
<br />
The '''local''' modifier is part of Linux programming and has no meaning for Windows. It was introduced for compatibility with Kylix.<br />
<br />
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.<br />
<br />
<syntaxhighlight lang=pascal><br />
procedure subHello(); local;<br />
begin<br />
...<br />
end;<br />
</syntaxhighlight></div>Trev