Difference between revisions of "Comments"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 29: Line 29:
 
* [[Compiler directive]]
 
* [[Compiler directive]]
 
* [[ToDo List]]
 
* [[ToDo List]]
 +
 +
[[Category:Pascal]]

Revision as of 22:06, 20 April 2013

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