pointers question

BlitzMax Forums/BlitzMax Programming/pointers question

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

If your nodes only have a next and no prev reference, then null-ifying first and last references will clear the list, IF your values don't hold a value to the nodes.

This means:

Type Queue has reference to first:node, last:node

Node has reference next:node, value:object

the value objects don't have any reference to either of both.