ascot diagnostics

A4556

Information: Do discards the {class} this call returns

This Do drops the %Status or %Boolean the call returns, which says whether the call worked. The caller goes on as if it had. IRIS compiles and runs the call. Where the outcome matters, keep the value, with Set sc = ..Save("Ann") and $$$ISERR(sc) or with If ..Save("Ann"). Where it does not, Do is the usual call. A stream’s Write and a collection’s Insert return a %Status too.

IRIS compiles the example.

Class Demo.DiscardedReturnValue
{

ClassMethod Save(name As %String) As %Status
{
    Set ^Demo.Names(name) = $Horolog
    Quit $$$OK
}

ClassMethod Call()
{
    Do ..Save("Ann") //! A4556
}

}

All diagnostics