Error: {function} can’t take the private variable ‘{name}’
$NAME and $QUERY take a variable the code can reach by name at run time, which a
procedure block’s private locals are not: IRIS refuses to compile either on a local the
method has not listed as public. Add the variable to the method’s PublicList, or use a
global.
IRIS rejects the example.
Class Demo.PrivateVariableNotAllowed
{
ClassMethod Path() As %String
{
Set data("a", 1) = "x"
Quit $NAME(data("a", 1)) //! A3485
}
}