Michael
It's not that hard to imagine. I want to have a dynamically growing array of items that I need to index directly for various reasons.
For example, I'm currently faking a 'stack' implementation by having a TList of objects, using ListAddFirst to push onto the stack and I'm wanting to do a "GetTop" function by indexing item 0. But I currently can't do that with converting to an array first...
Is there a better way? I'm more than willing to learn! :)
It's not that hard to imagine. I want to have a dynamically growing array of items that I need to index directly for various reasons.
For example, I'm currently faking a 'stack' implementation by having a TList of objects, using ListAddFirst to push onto the stack and I'm wanting to do a "GetTop" function by indexing item 0. But I currently can't do that with converting to an array first...
Is there a better way? I'm more than willing to learn! :)