Sure, the point is that you need to keep your references pointing to something 
which won't move. As you've discovered realloc can move everything in your 
sequence, so to avoid this you can store references to your objects in your 
sequence instead of your actual objects. But if you want them to live close to 
each other in memory you need to allocate the memory for them in chunks. A list 
of arrays (linked or otherwise) is one way to solve this. But you could do it 
in other ways as well.

Reply via email to