ascot diagnostics

A6319

Error: Parameter ‘{name}’ is a constant: it takes no arguments and can’t be assigned

..#NAME(args) calls the class parameter NAME, or Set ..#NAME = v assigns it, and a parameter is a compile-time constant that does neither. IRIS refuses to compile both. Read the parameter bare, as ..#NAME; a value that varies belongs 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
}

}

All diagnostics