Difference between revisions of "Do"
From Free Pascal wiki
Jump to navigationJump to search (clean a bit) |
|||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{do}} | {{do}} | ||
− | |||
− | |||
− | + | The {{HL|do}} keyword is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | == occurences == | ||
+ | The keyword {{HL|do}} usually separates a language construct from an associated (compound) [[statement]]. | ||
+ | * loops | ||
+ | ** [[For|{{HL|for}}]] … {{HL|to}} … {{HL|do}} | ||
+ | ** [[While|{{HL|while}}]] … {{HL|do}} | ||
+ | * [[Identifier|identifier]] scope lookup routing: [[With|{{HL|with}}]] … {{HL|do}} | ||
+ | * [[Exceptions|exception]] handling: [[Try|{{HL|try}}]] … [[Except|{{HL|except}}]] {{HL|on}} … {{HL|do}} | ||
+ | * in [[Extended Pascal|extended Pascal]] the start of initialization and finalization parts of a module: {{HL|to begin do …;}} and {{HL|to end do …;}} | ||
{{Keywords}} | {{Keywords}} | ||
− | |||
− |
Latest revision as of 00:52, 15 October 2020
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
français (fr) │
русский (ru) │
The do
keyword is a reserved word that is only used in conjunction with other keywords.
occurences
The keyword do
usually separates a language construct from an associated (compound) statement.
- loops
- identifier scope lookup routing:
with
…do
- exception handling:
try
…except
on
…do
- in extended Pascal the start of initialization and finalization parts of a module:
to begin do …;
andto end do …;
Keywords: begin — do — else — end — for — if — repeat — then — until — while