Difference between revisions of "Comments/fi"
From Free Pascal wiki
Jump to navigationJump to search (Created page with "{{Comments}} = Kommentit = Komentit ovat ihmisille luettavaksi tarkoitettuja muistutuksia/huomautuksia jotka edistävät ohjelmakoodin luettavuutta. Niitä ei tulkita kään...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 13: | Line 13: | ||
Esimerkki: | Esimerkki: | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="pascal"> |
{ public declarations } | { public declarations } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 23: | Line 23: | ||
Example: | Example: | ||
− | <syntaxhighlight> | + | <syntaxhighlight lang="pascal"> |
// Tämä on kommentti | // Tämä on kommentti | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 31: | Line 31: | ||
* [[Compiler directive]] | * [[Compiler directive]] | ||
* [[ToDo List]] | * [[ToDo List]] | ||
− | |||
− |
Latest revision as of 01:51, 20 May 2020
│
Deutsch (de) │
English (en) │
suomi (fi) │
français (fr) │
italiano (it) │
русский (ru) │
Kommentit
Komentit ovat ihmisille luettavaksi tarkoitettuja muistutuksia/huomautuksia jotka edistävät ohjelmakoodin luettavuutta. Niitä ei tulkita käännettäessä. Ne yksinkertaisesti ohitetaan.
Lohkokommentit
Lohkokommentit määritellään { ja } tai (* ja *) merkeillä.
- { tai (* on kommentin alku
- } tai *) on kommentin loppu
Esimerkki:
{ public declarations }
Rivinloppu kommentti
Rivinloppu kommentti alkaa merkinnällä // ja jatkuu rivin loppuun asti.
Example:
// Tämä on kommentti