On/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 | + | Das reservierte Wort on gehört zur objektorientierten Programmierung. | |
| 4 | 4 | ||
| 5 | - | ||
| 5 | + | Das reservierte Wort on dient der Behandlung von speziellen Exceptions innerhalb des except-Blocks. | |
| 6 | 6 | ||
| 7 | 7 | Beispiel: | |
| 8 | 8 | ||
| 9 | 9 | ``` pascal | |
| 10 | 10 | begin | |
| 11 | 11 | ... | |
| 12 | 12 | try | |
| 13 | 13 | ... // Aktion | |
| 14 | 14 | except | |
| 15 | 15 | on EFOpenError do // Fehlerbehandlung für eine spezielle Exception | |
| 16 | 16 | ... | |
| 17 | 17 | on EOverFlow do // Fehlerbehandlung für eine spezielle Exception | |
| 18 | 18 | ... | |
| 19 | 19 | else // Fehlerbehandlung für alle anderen Exceptions | |
| 20 | 20 | ... | |
| 21 | 21 | end; | |
| 22 | 22 | ... | |
| 23 | 23 | end; | |
| 24 | 24 | ``` | |
| 25 | 25 | ||
| 26 | 26 | --- | |
| 27 | 27 | *From the Free Pascal wiki, page "On/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).* |
