Difference between revisions of "Comments"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 
{{Comments}}
 
{{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. They are not interpreted by the compiler and ignored when building your program.
  
 
== Block comments ==
 
== Block comments ==

Revision as of 17:36, 6 May 2014

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. They are not interpreted by the compiler and ignored when building your program.

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

See also