Difference between revisions of "Comments"

From Free Pascal wiki
Jump to navigationJump to search
(New page: 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 '''*)...)
 
Line 24: Line 24:
  
 
== Read more ==
 
== Read more ==
* [[Program_Structure Program Structure]]
+
* [[Program_Structure|Program Structure]]
 
* [[Compiler directive]]
 
* [[Compiler directive]]
 
* [[ToDo List]]
 
* [[ToDo List]]

Revision as of 14:53, 14 February 2008

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