Constant definitions allow programmers to refer to values with Qore identifiers rather than using the value. Constants are defined with the following syntax:
const [namespace_path
::]constant_identifier
=value
;
The value cannot require run-time evaluation (executes a function, has a variable reference, uses an operator that changes values, etc) or a parse exception will be raised.