2.7. Comments
danger
This Reference Manual output has not been verified, and may contain omissions or errors. Report any problems on the tracking issue
A comment
starts with two adjacent hyphens and extends up to the end of the line.
Syntax
2
3
A comment
may appear on any line of a program.
Static Semantics
4The presence or absence of comment
s has no influence on whether a program is legal or illegal. Furthermore, comment
s do not influence the meaning of a program; their sole purpose is the enlightenment of the human reader.
Examples
5Examples of comments:
-- the last sentence above echoes the Algol 68 report
end; -- processing of Line is complete
-- a long comment can be split onto
-- two or more consecutive lines
---------------- the first two hyphens start the comment