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.

You are not saving a TLINK somewhere and using it later are you? I think if you add to or remove from a TLIST, all TLINKS become invalid.
Correct. If you snatch a link out of a list you have to make it 'not exist' anymore, so if I were to take link2 out of link1->link2->link3 I would have to do link1._succ = link3 and link3._pred = link1; then further taking the predecessor and successor of link2 and pointing them to the surrounding links of the new position in a list (which then you would have to do so for the surrounding to the new aswell)..