Comments/fi: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Comments/fi
| Old | New | Line | |
|---|---|---|---|
| 1 | + | # Kommentit | |
| 2 | + | ||
| 3 | + | Komentit ovat ihmisille luettavaksi tarkoitettuja muistutuksia/huomautuksia jotka edistävät ohjelmakoodin luettavuutta. Niitä ei tulkita käännettäessä. Ne yksinkertaisesti ohitetaan. | |
| 4 | + | ||
| 5 | + | ## Lohkokommentit | |
| 6 | + | ||
| 7 | + | Lohkokommentit määritellään **{** ja **}** tai **(*** ja ***)** merkeillä. | |
| 8 | + | ||
| 9 | + | - **{** tai **(*** on kommentin alku | |
| 10 | + | - **}** tai ***)** on kommentin loppu | |
| 11 | + | ||
| 12 | + | Esimerkki: | |
| 13 | + | ||
| 14 | + | ``` pascal | |
| 15 | + | { public declarations } | |
| 16 | + | ``` | |
| 17 | + | ||
| 18 | + | ## Rivinloppu kommentti | |
| 19 | + | ||
| 20 | + | Rivinloppu kommentti alkaa merkinnällä **//** ja jatkuu rivin loppuun asti. | |
| 21 | + | ||
| 22 | + | Example: | |
| 23 | + | ||
| 24 | + | ``` pascal | |
| 25 | + | // Tämä on kommentti | |
| 26 | + | ``` | |
| 27 | + | ||
| 28 | + | ## See also | |
| 29 | + | ||
| 30 | + | - [[Program Structure]] | |
| 31 | + | - [[Compiler directive]] | |
| 32 | + | - [[ToDo List]] | |
| 33 | + | ||
| 34 | + | --- | |
| 35 | + | *From the Free Pascal wiki, page "Comments/fi", as it stood on 2020-05-19 after a change by FTurtle, 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).* |
