pointers question

BlitzMax Forums/BlitzMax Programming/pointers question

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.

That raises a new question then.

Lets say i have a Queue. It consists of two pointers, First, and Last, Who points to a chain of Nodes (Each Node points to the next in the chain). When you add a new node it is added last in the chain, and when you pick one out, you take the first. When you want to clear this Queue, can you just set the first and last pointers to null and the chain in between is lost, or do you have to manually go through the entiry chain of nodes setting all the pointers to null ?