Hiya
I have a linked list in Blitzmax using types etc...
Say five of these items in the list reference a 6th item.
ball.x = ball.master.x
An item holds the 6th item (the master) as .master, and can use it's data.
The problem here is master will at some point be deleted, and the mantle of master will be passed to a different ball.
How do I make all the other balls update their master variable type without going through the entire list and manually setting them? It's not a major problem to do this but I thought it might be quite nice if there's an elegent and fast solution such as pointers or something?
I have a linked list in Blitzmax using types etc...
Say five of these items in the list reference a 6th item.
ball.x = ball.master.x
An item holds the 6th item (the master) as .master, and can use it's data.
The problem here is master will at some point be deleted, and the mantle of master will be passed to a different ball.
How do I make all the other balls update their master variable type without going through the entire list and manually setting them? It's not a major problem to do this but I thought it might be quite nice if there's an elegent and fast solution such as pointers or something?