Sign in Join
Wiki copytemporary

Do: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Do

OldNewLine
1+The `do` keyword is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]].
2+
3+## occurences
4+
5+The keyword `do` usually separates a language construct from an associated (compound) [[statement]].
6+
7+- loops
8+ - [[For|for]] … `to` … `do`
9+ - [[While|while]] … `do`
10+- [[Identifier|identifier]] scope lookup routing: [[With|with]] … `do`
11+- [[Exceptions|exception]] handling: [[Try|try]] … [[Except|except]] `on` … `do`
12+- in [[Extended Pascal|extended Pascal]] the start of initialization and finalization parts of a module: `to begin do …;` and `to end do …;`
13+
14+---
15+*From the Free Pascal wiki, page "Do", as it stood on 2020-10-14 after a change by Rfc1394, 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).*

Back to history