Is it no longer possible to have a global variable update by reference in v7?
Code: Select all
:global TestVar;
:if ($TestVar = nil) do={
:set TestVar [:toarray ""];
:set ($TestVar->"nbr1") [:toarray ""];
:set ($TestVar->"nbr1"->"count") 0;
}
:local nbr1 ($TestVar->"nbr1");
:set ($nbr1->"count") (($nbr1->"count") + 1);
:put ($nbr1->"count"); #1
Is there any documentation on what has changed v6 vs. v7 when it comes to scripting? e.g. did the model shift to COW?