Comments

From Lazarus wiki
Revision as of 15:01, 24 March 2012 by Vincent (talk | contribs) (Text replace - "delphi>" to "syntaxhighlight>")
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:

    { public declarations }

Line comments

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

Example:

 // This is comment

Read more