Public/de: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | Zurück zu den [[Reserved words/de|reservierten Wörtern]]. | |
| 2 | 2 | ||
| 3 | - | ||
| 3 | + | Der Modifier public gehört zur Programmierung von Unterprogrammen. | |
| 4 | 4 | ||
| 5 | - | ||
| 5 | + | Der Modifier public macht ein Unterprogramm innerhalb der Unit öffentlich. | |
| 6 | 6 | ||
| 7 | 7 | Das ist dann sinnvoll, wenn das Unterprogramm innerhalb der Unit nicht gesehen wird. | |
| 8 | 8 | ||
| 9 | 9 | Solange das Unterprogramm nicht im interface-Abschnitt der Unit deklariert wurde ist es für andere Units nicht sichtbar. | |
| 10 | 10 | ||
| 11 | 11 | ``` pascal | |
| 12 | 12 | function subTest: string; [Public]; | |
| 13 | 13 | begin | |
| 14 | 14 | subTest := 'abc'; | |
| 15 | 15 | end; | |
| 16 | 16 | ``` | |
| 17 | 17 | ||
| 18 | 18 | --- | |
| 19 | 19 | *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](/wiki-contact).* |
