TList indexing?

BlitzMax Forums/BlitzMax Programming/TList indexing?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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! :)