TList indexing?

BlitzMax Forums/BlitzMax Programming/TList indexing?

You've got me there! A bank would be the best thing to use for a stack, since it's got an internal size which is larger than what you size it to, so most of the time growing/shrinking it is instant. When using it to store objects, though, the syntax would be kind of ugly, and I can't figure out how to get BlitzMax to cast Object<->Int. Oh, and they'd have to be stored in a list elsewhere, too, so they aren't collected.

So yeah, I guess each of the three (obvious) ways you can solve the problem are hacky.