Difference between revisions of "Do"

From Free Pascal wiki
Jump to navigationJump to search
m (→‎occurences: link article statement)
(8 intermediate revisions by 6 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 =
+
<syntaxhighlight lang="pascal" inline>do</syntaxhighlight> 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 ==
 +
<syntaxhighlight lang="pascal" inline>do</syntaxhighlight> usually separates a language construct from an associated (compound) [[statement]].
  
 +
* loops
 +
** [[For|<syntaxhighlight lang="pascal" inline>for</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>to</syntaxhighlight> … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
 +
** [[While|<syntaxhighlight lang="pascal" inline>while</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
 +
* [[Identifier|identifier]] scope lookup routing: [[With|<syntaxhighlight lang="pascal" inline>with</syntaxhighlight>]] … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
 +
* [[Exceptions|exception]] handling: [[Try|<syntaxhighlight lang="pascal" inline>try</syntaxhighlight>]] … [[Except|<syntaxhighlight lang="pascal" inline>except</syntaxhighlight>]] <syntaxhighlight lang="pascal" inline>on</syntaxhighlight> … <syntaxhighlight lang="pascal" inline>do</syntaxhighlight>
 +
* in [[Extended Pascal|extended Pascal]] the start of initialization and finalization parts of a module: <syntaxhighlight lang="pascal" inline>to begin do …;</syntaxhighlight> and <syntaxhighlight lang="pascal" inline>to end do …;</syntaxhighlight>
  
 
{{Keywords}}
 
{{Keywords}}
[[Category:Pascal]]
 
[[Category:Control Structures]]
 

Revision as of 22:28, 19 October 2019

Deutsch (de) English (en) español (es) suomi (fi) français (fr) русский (ru)

do is a reserved word that is only used in conjunction with other keywords.

occurences

do usually separates a language construct from an associated (compound) statement.


Keywords: begindoelseendforifrepeatthenuntilwhile