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}{0}
\DoxyCodeLine{\textcolor{comment}{\# this is a line comment}}
\DoxyCodeLine{/* }
\DoxyCodeLine{   this \textcolor{keywordflow}{is} a block comment }
\DoxyCodeLine{*/}

\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}{0}
\DoxyCodeLine{\textcolor{comment}{\#!/usr/bin/env qore}}
\DoxyCodeLine{\textcolor{comment}{\#}}
\DoxyCodeLine{\textcolor{comment}{\# these are line comments}}
\DoxyCodeLine{\textcolor{comment}{\# another line comment}}
\DoxyCodeLine{}
\DoxyCodeLine{/*}
\DoxyCodeLine{   -\/-\/-\/ this text \textcolor{keywordflow}{is} \textcolor{keywordflow}{in} block comments}
\DoxyCodeLine{   \mbox{\hyperlink{group__string__functions_ga996c5d1686fbc245f0bc7a02012e6a33}{print}}(\textcolor{stringliteral}{"{}hello"{}}); <-\/ this won\textcolor{stringliteral}{'t get executed }}
\DoxyCodeLine{\textcolor{stringliteral}{   -\/-\/-\/ because it's in the block comment}}
\DoxyCodeLine{\textcolor{stringliteral}{*/}}

\end{DoxyCode}
 