Qore Programming Language Reference Manual: Comments

Qore Programming Language Reference Manual 0.8.11

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

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:

# this is a line comment
/*
this is a block comment
*/

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:

#!/usr/bin/env qore
#
# these are line comments
# another line comment
/*
--- this text is in block comments
print("hello"); <- this won't get executed
--- because it's in the block comment
*/