Implementation/de: what changed
Revision 2 to 3. 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 | - | ||
| 4 | - | ||
| 3 | + | Das reservierte Wort implementation dient der Gliederung (Unterteilung) einer Unit. | |
| 5 | 4 | ||
| 6 | - | ||
| 5 | + | Im Abschnitt implementation wird alles was im Abschnitt interface für andere Units bekanntgemacht (deklariert) wurde umgesetzt. | |
| 7 | 6 | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 7 | + | Beispiel für einen Aufbau der Unit: | |
| 8 | + | ||
| 9 | + | ``` pascal | |
| 11 | 10 | unit ...; // Name der Unit | |
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - | ||
| 18 | - | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 22 | - | ||
| 11 | + | interface // Hier wird, alles bekanntgemacht, das von anderen Units gesehen (verwendet) werden darf | |
| 12 | + | uses ...; | |
| 13 | + | ... | |
| 14 | + | implementation // Hier steht die Umsetzung der Anforderungen | |
| 15 | + | uses ...; | |
| 16 | + | ... | |
| 17 | + | initialization // Optionaler Abschnitt: hier werden die Variablen usw. initialisiert | |
| 18 | + | ... | |
| 19 | + | finalization // Optionaler Abschnitt: hier steht, was zum Programmende zu geschehen hat. | |
| 20 | + | .... | |
| 21 | + | end. | |
| 23 | 22 | ``` | |
| 24 | 23 | ||
| 25 | 24 | --- | |
| 26 | - | ||
| 25 | + | *From the Free Pascal wiki, page "Implementation/de", as it stood on 2020-02-14 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).* |
