Error: Parameter ‘{name}’ is a constant: it takes no arguments and can’t be assigned
The code calls a class parameter with arguments, as in ..#NAME(args), or assigns one, as
in Set ..#NAME = v. A class parameter is a constant set at compile time, so it takes no
arguments and cannot be assigned. IRIS refuses to compile the class (ERROR #1025 for the
call, ERROR #1011 for the assignment). Read the class parameter bare, as ..#NAME, and
put a value that varies in a property or a method.
IRIS rejects the example.
Class Demo.ParameterIsConstant
{
Parameter LIMIT = 10;
ClassMethod Call(limit As %Integer)
{
Set ..#LIMIT = limit //! A6319
}
}