Difference between revisions of "Do"

From Lazarus wiki
Jump to navigationJump to search
m
(clean a bit)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
{{do}}
 
{{do}}
<br>
 
[[Keyword|keyword]] used with other ones, such as [[For|for]], [[to]], [[While|while]] etc...
 
  
= [[For]] to do =
+
The {{HL|do}} keyword is a [[Reserved word|reserved word]] that is only used in conjunction with other [[Keyword|keywords]].
 
 
= [[Try]]  except on do end =
 
 
 
= [[While]] do =
 
 
 
  while a>b do
 
 
 
= [[With]] do =
 
  
 +
== 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}}
[[Category:Pascal]]
 

Latest revision as of 23:52, 14 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