Back to manual index

Comments

Comments are pieces of the source code which are completely discarded by the compiler. They exist only for the benefit of the programmer, so he can explain certain pieces of code. For the interpreter, this text is as if the comments were not present.

Example:

(* This variable function returns a max limit result *)
var UpperLimit : integer;

The original comment brackets are valid with GibPascal.

{ and } may be used at the end of a statement or on a line by themselves.

{This statement prints something}
writeln('something'); {something printed}

The use of (* and *) can also be used as comment delimiters. GibPascal also allows the use of C like // for comments.

// this is a comment.
(* this is also a comment *)


The later two are for whole line comments only with GibPascal. // will render the whole line nonexecutable.