ascot diagnostics

A8496

Error: Property ‘{name}’ is not MultiDimensional, so it takes no subscripts

..X(subs) addresses a node of the property X, which only a MultiDimensional property has. IRIS compiles ..X(subs) for any property but throws <OBJECT DISPATCH> on reaching it, whatever X’s type. A collection’s element is ..X.GetAt(key); a property meant to hold nodes is declared [ MultiDimensional ].

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

Class Demo.NotMultidimensional Extends %RegisteredObject
{

Property Tags As list Of %String;

Method Call() As %String
{
    Quit ..Tags(1) //! A8496
}

}

All diagnostics