Qore Programming Language Reference Manual  0.8.13.5
 All Classes Namespaces Functions Variables Groups Pages
Comments

Comments are allowed in Qore scripts; line comments are preceded by a hash "#", and block comments are made C-style, ex:

1 # this is a line comment
2 /*
3  this is a block comment
4 */

For line comments, all text following a hash until the end-of-line character "\n" is considered a part of the comment.

For block comments, all text in the block comment is ignored by the parser.

Here is an example Qore script containing comments:

1 #!/usr/bin/env qore
2 #
3 # these are line comments
4 # another line comment
5 
6 /*
7  --- this text is in block comments
8  print("hello"); <- this won't get executed
9  --- because it's in the block comment
10 */