Difference between revisions of "Left curly bracket"
From Lazarus wiki
Jump to navigationJump to search (Created page with "{{ Left curly bracket }} <div style="float:left; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ Left curly bracket }} | {{ Left curly bracket }} | ||
− | |||
<div style="float:left; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777; clear:both;">{</div> | <div style="float:left; margin: 0 25px 20px 0; padding:50px; font-size:500%; font-family: Georgia; background-color: #f9f9f9; border: 2px solid #777777; clear:both;">{</div> | ||
− | The | + | The left curly bracket <syntaxhighlight lang="pascal" inline>{</syntaxhighlight> is defined in [[ASCII]] as having the value is <syntaxhighlight lang="pascal" inline>123</syntaxhighlight> ([[Hexadecimal|hexadecimal]] <syntaxhighlight lang="delphi" inline>$7B</syntaxhighlight>). |
− | + | In [[Pascal]] it always appears in conjunction with a corresponding right curly bracket constituting a pair. | |
− | + | Such a pair is used to: | |
− | * [[Comments| | + | * write [[Comments#block comments|block comments]] |
− | * | + | * [[FPC]] and Delphi interpret such comments with an initial [[Dollar sign|dollar sign]] as [[Compiler directive|compiler directives]], for example <syntaxhighlight lang="delphi" inline>{$longStrings on}</syntaxhighlight> |
− | * [[ | + | * integrated development environments such as [[Lazarus]] interpret block comments with an initial [[Percent sign|percent sign]] as [[IDE directives]], for instance <syntaxhighlight lang="delphi" inline>{%H-}</syntaxhighlight> |
+ | {{Symbols}} |
Latest revision as of 17:26, 6 August 2022
│
English (en) │
{
The left curly bracket {
is defined in ASCII as having the value is 123
(hexadecimal $7B
).
In Pascal it always appears in conjunction with a corresponding right curly bracket constituting a pair.
Such a pair is used to:
- write block comments
- FPC and Delphi interpret such comments with an initial dollar sign as compiler directives, for example
{$longStrings on}
- integrated development environments such as Lazarus interpret block comments with an initial percent sign as IDE directives, for instance
{%H-}
single characters |
|
character pairs |
|