Comments

From Free Pascal wiki
Revision as of 14:53, 14 February 2008 by Djzepi (talk | contribs)
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