Local variables/fi: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Local variables/fi
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Paikallinen [[Variable|muuttuja]] on määritelty [[Procedure/fi|aliohjelman (procedure)]], [[Function|funktion]], [[Method|metodin]] tai [[Unit/fi|käännösyksikön (unit)]] [[Implementation|implementation]] osan sisällä ja se on haettavissa vain siellä, niin sillä sanotaan olevan vain paikallinen näkyvyys eikä sitä pysty hakemaan/näkemään ulkopuolelta (esim. toisesta ulkopuolisesta aliohjelmasta, funktiosta tai käännösyksiköstä) | |
| 2 | + | ||
| 3 | + | ``` pascal | |
| 4 | + | procedure DoSomething; | |
| 5 | + | var | |
| 6 | + | ||
| 7 | + | x : TJokin_typpi; | |
| 8 | + | ||
| 9 | + | begin | |
| 10 | + | ||
| 11 | + | end; | |
| 12 | + | ``` | |
| 13 | + | ||
| 14 | + | ## Katso myös | |
| 15 | + | ||
| 16 | + | - [[Var]] | |
| 17 | + | - [[Global variables]] | |
| 18 | + | ||
| 19 | + | --- | |
| 20 | + | *From the Free Pascal wiki, page "Local variables/fi", as it stood on 2020-02-19 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).* |
