Define inconsistency
Posted: Sun Jan 30, 2022 12:56 pm
Does anyone else find it inconsistent that defining a map, list or array will clear its values but defining a variable does not:
Code: Select all
Define NewList TestList.i()
Define Var.i
AddElement(TestList()) : TestList() = 1 : AddElement(TestList()) : TestList() = 2 : AddElement(TestList()) : TestList() = 3
Var = 123
ForEach TestList()
Debug TestList()
Next
Debug Var
Debug "-------------"
Define NewList TestList.i()
Define Var.i
ForEach TestList() ; Now Empty
Debug TestList()
Next
Debug Var ; Still there