ascot diagnostics

A6705

Warning: Too few arguments: ‘{next_arg}’ may be required

The call passes no argument for a formal argument that has no default value and is not Output. IRIS compiles the call, but the formal argument is undefined in the callee. Reading it there raises <UNDEFINED> unless the callee tests $Data or reads it with $Get first. Pass the argument, or give the formal argument a default value.

IRIS compiles the example, and do ##class(Demo.TooFewArguments).Call() raises <UNDEFINED> when it runs.

Class Demo.TooFewArguments
{

ClassMethod Greet(name As %String) As %String
{
    Quit "Hello, " _ name
}

ClassMethod Call() As %String
{
    Quit ..Greet() //! A6705
}

}

All diagnostics