Left curly bracket: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | 1 | { | |
| 4 | - | ||
| 5 | - | ||
| 6 | 2 | ||
| 7 | 3 | The left curly bracket `{` is defined in [[ASCII]] as having the value is `123` ([[Hexadecimal|hexadecimal]] `$7B`). In [[Pascal]] it always appears in conjunction with a corresponding right curly bracket constituting a pair. Such a pair is used to: | |
| 8 | 4 | ||
| 9 | 5 | - write [[Comments|block comments]] | |
| 10 | 6 | - [[FPC]] and Delphi interpret such comments with an initial [[Dollar sign|dollar sign]] as [[Compiler directive|compiler directives]], for example `{$longStrings on}` | |
| 11 | 7 | - integrated development environments such as [[Lazarus]] interpret block comments with an initial [[Percent sign|percent sign]] as [[IDE directives]], for instance `{%H-}` | |
| 12 | 8 | ||
| 13 | 9 | --- | |
| 14 | 10 | *From the Free Pascal wiki, page "Left curly bracket", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
