Difference between revisions of "Colon"

From Free Pascal wiki
Line 1: Line 1:
The symbol : (pronounced "colon") is used in pascal in several ways.
+
The symbol : (pronounced "colon") is used in [[Pascal]] in several ways.
  
It is used to indicate a label.
+
* It is used to indicate the [[Type|type]] of an [[Identifier|identifier]] in a [[Var|var]] or [[Const|const]] declaration.
 +
 
 +
* It is used to indicate a [[Case|case]] statement entry.
 +
 
 +
* It is used to indicate a label.
  
It is used to indicate a case statement entry.
 
  
It is used to indicate the type of an identifier in a [[Var|var]] or [[Const|const]] declaration.
 
  
  

Revision as of 16:17, 20 October 2007

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

  • It is used to indicate a case statement entry.
  • It is used to indicate a label.




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)


An editor has declared this article to be a stub, meaning that it needs more information. Can you help out and add some? If you have some useful information, you can help the Free Pascal Wiki by clicking on the edit box on the left and expanding this page.