List.AddLast() and List.AddFirst() Different?

BlitzMax Forums/BlitzMax Programming/List.AddLast() and List.AddFirst() Different?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you remove an object from lista the associated tlink is no longer valid and a new one created if the object is added to another list.
Local teststring:String="one"
Local list1:TList=CreateList()
Local list2:TList=CreateList()
Local mylink1:TLink=list1.addlast(teststring)
Print mylink1.tostring()
list1.remove(teststring)
Local mylink2:TLink=list2.addlast(teststring)
Print mylink2.tostring()

By keeping a variable pointer to the old tlink you keep it alive but, I believe, it doesn't point to anything (other than a memory block).