Update language/tests/scripts/references/refsim.ring - Add: hideVar() function
@@ -288,8 +288,7 @@ func decrement aMem,cVar
# Do the decrement
decRefCount(aMem,cVar)
# Kill the Var
- killVar(aMem,cVar)
- //decrementChildren(aMem,cVar)
+ hideVar(aMem,cVar)
func decrementChildren aMem,cVar
aChild = getNestedChildren(aMem,cVar)
@@ -314,6 +313,10 @@ func killVar aMem,cVar
nIndex = getVar(aMem,cVar)
aMem[nIndex][C_STATUS] = :Dead
+func hideVar aMem,cVar
+ nIndex = getVar(aMem,cVar)
+ aMem[nIndex][C_STATUS] = :Hidden
+
func testDeleteVar
testDeleteVarInMem1()
