Delphi Language Guide Delphi for Microsoft Win32 Delphi for the Microsoft. Net framework



Yüklə 0,84 Mb.
Pdf görüntüsü
səhifə47/294
tarix02.01.2022
ölçüsü0,84 Mb.
#41395
1   ...   43   44   45   46   47   48   49   50   ...   294
DelphiLanguageGuide

Comments and Compiler Directives
Comments are ignored by the compiler, except when they function as separators (delimiting adjacent tokens) or
compiler directives.
There are several ways to construct comments:
{ Text between a left brace and a right brace constitutes a comment. }
          (* Text between a left-parenthesis-plus-asterisk and an asterisk-plus-right-
parenthesis is also a comment *)
          // Any text between a double-slash and the end of the line constitutes a comment.
Comments that are alike cannot be nested. For instance
{{}}
 will not work, but 
(*{}*)
will. This is useful for
commenting out sections of code that also contain comments.
A comment that contains a dollar sign ($) immediately after the opening { or (* is a compiler directive. For example,
{$WARNINGS OFF}
tells the compiler not to generate warning messages.
29



Yüklə 0,84 Mb.

Dostları ilə paylaş:
1   ...   43   44   45   46   47   48   49   50   ...   294




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin