Comments

From Free Pascal wiki
Revision as of 14:52, 14 February 2008 by Djzepi (talk | contribs) (New page: Comments are human-readable notes or other kinds of annotations in support of the program code. == Block comments == Block comments delimited by '''{''' and '''}''' or '''(*''' and '''*)...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Comments are human-readable notes or other kinds of annotations in support of the program code.

Block comments

Block comments delimited by { and } or (* and *).

  • { or (* is comment start
  • } or *) is comment end

Example:

<delphi>

   { public declarations }

</delphi>

Line comments

Line comments or inline comments start with comment delimiter // and continue until the end of the line.

Example:

<delphi>

// This is comment

</delphi>

Read more