TStack type

BlitzMax Forums/BlitzMax Beginners Area/TStack type

yossi(Posted 2014) [#1]
as a former c# programmer I used a lot the TStack class to implement algorithms.

I get the impression that this type is missing from blitz max and therefore I wish to implement this type with blitz max and of curse give it to the community as a free open source when it ready.

before I start a project on this I want to make shore that it is not already exist as part of the language or as an external module (I don't wish to spend my time about something already exist).

so if one know about the existence of such a type in blitz max please let me know.


Derron(Posted 2014) [#2]
Just searched the forums for "stack":

http://www.blitzmax.com/Community/post.php?topic=97234&post=1128351


bye
Ron


col(Posted 2014) [#3]
Hiya,

There's not much that hasn't been done already.

TStack
Multithread safe version

You could easily achieve a TStack with using a TList. Just add and remove from the same end of the list, however a TList isn't multi-thread safe - which doesn't matter unless you're using multiple threads of course :)

EDIT: Derron beat me :D


yossi(Posted 2014) [#4]
thank you.