Tiny Help with TLists

BlitzMax Forums/BlitzMax Beginners Area/Tiny Help with TLists

Yes. The entry in the both lists is simply a pointer to the same single object.
Type ttest
	Field x
End Type
temp:ttest = New ttest
temp.x = 5
list1:TList = CreateList()
list2:TList = CreateList()
ListAddLast list1 , temp
ListAddLast list2 , temp
newtemp:TTest = ttest(list2.last() )
newtemp.x = 10
For all1:ttest = EachIn list1
	Print "Value in list1 : " +  all1.x
Next
For all2:ttest = EachIn list2
	Print "Value in list2 : " + all2.x
Next