ascot diagnostics

A2746

Error: Property ‘{name}’ is not MultiDimensional, so it stands for no variable here

..X is written where IRIS wants a variable, but only a MultiDimensional property is one. IRIS wants a variable as the argument of $GET, $DATA, $ORDER, $QUERY, $NAME, $INCREMENT, $ZORDER, $SEQUENCE or $VECTOR. MERGE wants one on either side, and SET $LISTBUILD(...) =, SET $PIECE(...) = and the like assign to one. IRIS compiles the code and raises <OBJECT DISPATCH> when it runs. Use the property’s value instead, as ..X in place of $GET(..X), or declare the property [ MultiDimensional ].

IRIS compiles the example, and do ##class(Demo.PropertyAsVariable).%New().Call() raises <OBJECT DISPATCH> when it runs.

Class Demo.PropertyAsVariable Extends %RegisteredObject
{

Property Name As %String;

Method Call() As %String
{
    Quit $Get(..Name) //! A2746
}

}

All diagnostics