There is a [tcllib] module for [stack]s. See also [Stacks and queues] and [yet another stack package].