Difference between revisions of "Comments"

From Lazarus wiki
Jump to navigationJump to search
m (Text replace - "delphi>" to "syntaxhighlight>")
m
Line 1: Line 1:
 +
{{Comments}}
 +
 
Comments are human-readable notes or other kinds of annotations in support of the program code.
 
Comments are human-readable notes or other kinds of annotations in support of the program code.
  

Revision as of 15:24, 9 April 2012

Deutsch (de) English (en) suomi (fi) français (fr) italiano (it) русский (ru)

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