ascot diagnostics

A5268

Error: {function} takes no by-reference argument

The call passes an argument by reference, as .variable, to $ZF(-3), $ZF(-5) or $ZF(-6), which take their arguments by value only. IRIS treats the .variable as a syntax error and refuses to compile the call (ERROR #1054: Invalid expression). Pass the value itself and use the function’s return value.

IRIS rejects the example.

Class Demo.ByRefArgumentNotAllowed
{

ClassMethod Call() As %Integer
{
    Quit $ZF(-3, "mylib", "Func", .out) //! A5268
}

}

All diagnostics