Class ::tycho::Stack


Inherits: ::tycho::Object - Source File - Contents: public methods - protected variable
A simple stack data structure with methods to push and pop. Data stored on the stack is any arbitrary Tcl string.

Public constructs

Public Methods

clear
Reinitialize the stack, eliminating all previous items.
pop
Pop a value from the stack and return it. If there is nothing on the stack, return an empty string.
push value
Push a value onto the stack.

Protected constructs

Protected Variable

data
The list used to implement the stack.

Index of classes



Author: Edward A. Lee
Version: @(#)Stack.itcl 1.9 11/12/96
Copyright: (c) 1995-1996 The Regents of the University of California.