Comments are allowed in Qore scripts; line comments are preceded by a hash {\ttfamily \char`\"{}\#\char`\"{}}, and block comments are made C-\/style, ex\+:


\begin{DoxyCode}
\textcolor{comment}{# this is a line comment}
/* 
   this \textcolor{keywordflow}{is} a block comment 
*/
\end{DoxyCode}


For line comments, all text following a hash until the end-\/of-\/line character {\ttfamily \char`\"{}\textbackslash{}n\char`\"{}} 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\+:


\begin{DoxyCode}
\textcolor{comment}{#!/usr/bin/env qore}
\textcolor{comment}{#}
\textcolor{comment}{# these are line comments}
\textcolor{comment}{# another line comment}

/*
   --- this text \textcolor{keywordflow}{is} \textcolor{keywordflow}{in} block comments
   \hyperlink{group__string__functions_ga996c5d1686fbc245f0bc7a02012e6a33}{print}(\textcolor{stringliteral}{"hello"}); <- this won\textcolor{stringliteral}{'t get executed }
\textcolor{stringliteral}{   --- because it's in the block comment}
\textcolor{stringliteral}{*/}
\end{DoxyCode}
 