Local variables/ru: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Local variables/ru
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Локальная [[Variable/ru|переменная]] определяется внутри [[Procedure/ru|процедуры]], [[Function/ru|функции]], [[Method/ru|метода]] или в секции [[Implementation/ru|implementation]] [[Unit/ru|модуля]] и доступна только в них. Говорят, что она имеет локальную область видимости и не может быть доступна извне (т.е. в другой внешней процедуре, функции или модуле). | |
| 2 | + | ||
| 3 | + | ``` pascal | |
| 4 | + | procedure DoSomething; | |
| 5 | + | var | |
| 6 | + | x : Tsome_type; | |
| 7 | + | begin | |
| 8 | + | ||
| 9 | + | end; | |
| 10 | + | ``` | |
| 11 | + | ||
| 12 | + | ## Читайте подробнее | |
| 13 | + | ||
| 14 | + | - [[Var/ru|Var]] | |
| 15 | + | - [[Global variables/ru|Глобальные переменные]] | |
| 16 | + | ||
| 17 | + | --- | |
| 18 | + | *From the Free Pascal wiki, page "Local variables/ru", 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).* |
