Revision 1 of 2, by Trev on 2-23-2020. The page as it is now.
Public/de
Zurück zu den reservierten Wörtern.
Der Modifier <b>public</b> gehört zur Programmierung von Unterprogrammen.
Der Modifier <b>public</b> macht ein Unterprogramm innerhalb der Unit öffentlich.
Das ist dann sinnvoll, wenn das Unterprogramm innerhalb der Unit nicht gesehen wird.
Solange das Unterprogramm nicht im interface-Abschnitt der Unit deklariert wurde ist es für andere Units nicht sichtbar.
function subTest: string; [Public];
begin
subTest := 'abc';
end;From the Free Pascal wiki, page "Public/de", as it stood on 2020-02-23 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.
