Error: SET $VECTOR needs its third argument, the type
Set $VECTOR(v, position) = value leaves out the element type, which the settable form
always takes as its third argument: IRIS refuses to compile it, a vector that already
exists included. Write $VECTOR(v, position, "integer"), or whichever type the vector
holds.
IRIS rejects the example.
Class Demo.SetVectorWithoutType
{
ClassMethod Sum() As %Integer
{
Set $VECTOR(scores, 1, "integer") = 3
Set $VECTOR(scores, 2) = 4 //! A8820
Quit $VECTOR(scores, 1) + $VECTOR(scores, 2)
}
}