Difference between revisions of "Left curly bracket"
From Lazarus wiki
Jump to navigationJump to searchLine 3: | Line 3: | ||
<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 left curly bracket <syntaxhighlight lang="pascal" | + | 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. | In [[Pascal]] it always appears in conjunction with a corresponding right curly bracket constituting a pair. | ||
Such a pair is used to: | Such a pair is used to: | ||
* write [[Comments#block comments|block 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" | + | * [[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" | + | * 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}} | {{Symbols}} |
Latest revision as of 16: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 |
|