Difference between revisions of "Do"

From Free Pascal wiki
Jump to navigationJump to search
m
(clean a bit)
 
(12 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Keyword|keyword]] used with other ones, such as [[For|for]], [[to]], [[While|while]] etc...
+
{{do}}
  while a>b 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.


Keywords: begindoelseendforifrepeatthenuntilwhile