Hey,
why do all of you don''t see the need vor the ''previous'' pointer?
This one is very handy, especially when you use linked list efficently.
When you for example want to delete an object of the list, you bind the ''next'' pointer of the node pointed by previoius to the current next pointer.
Think about inserting: replace the previous and next pointers with your new node.
If you want to do this whitout a previous pointer, you will still make one in your ''stepping through node'' function.
You will assign it for every node for the case the next node might be deleted. ( sounds little confusing..
![](sad.gif)
)
So in fact you replace storage with assignment...
So what does an extra DWORD matter? I gurantee you the CPU loves them
![](smile.gif)
Gr,
BoRReL