Difference between revisions of "Colon"

From Free Pascal wiki
m
Line 12: Line 12:
 
* It separate a [[Function|function]] declaration with the function type.
 
* It separate a [[Function|function]] declaration with the function type.
  
* It is used to indicate a label.
+
* It is used to indicate a [[Label|label]].
 
 
* It is used to separate the optional field width specifier from the value for a Write or Writeln parameter.
 
  
 +
* It is used to separate the optional field width specifier from the value for a [[Write]] or Writeln parameter.
  
 +
The colon [[ASCII]] or the unicode value is 58.
  
  
 
{{Symbols}}
 
{{Symbols}}
{{Stub}}
 
[[Category:Symbols]]
 

Revision as of 07:54, 23 September 2017

English (en) suomi (fi) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

:


The symbol : (pronounced "colon") is used in Pascal in several ways.

  • It is used to indicate a case statement entry.
  • It separate a function declaration with the function type.
  • It is used to indicate a label.
  • It is used to separate the optional field width specifier from the value for a Write or Writeln parameter.

The colon ASCII or the unicode value is 58.



navigation bar: topic: Pascal symbols
single characters

+ (plus)  •  - (minus)  •  * (asterisk)  •  / (slash)
= (equal)  •  > (greater than)  •  < (less than)
. (period)  •  : (colon)  •  ; (semi colon)
^ (hat)  •  @ (at)
$ (dollar sign)  •  & (ampersand)  •  # (hash)
' (single quote)

character pairs

<> (not equal)  •  <= (less than or equal)  •  := (becomes)  •  >= (greater than or equal)

 •  >< (symmetric difference)  •  // (double slash)