Free Pascal supports the use of nested comments. The following constructs are valid comments:
(* This is an old style comment *)
{ This is a Turbo Pascal comment }
// This is a Delphi comment. All is ignored till the end of the line.
|
{ Comment 1 (* comment 2 *) }
(* Comment 1 { comment 2 } *)
{ comment 1 // Comment 2 }
(* comment 1 // Comment 2 *)
// comment 1 (* comment 2 *)
// comment 1 { comment 2 }
|
// Valid comment { No longer valid comment !!
}
|
// Valid comment (* No longer valid comment !! *) |