home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 December
/
PCWorld_2000-12_cd.bin
/
Komunikace
/
Comanche
/
libplugin
/
stack.tcl
< prev
next >
Wrap
Text File
|
2000-11-02
|
269b
|
13 lines
class stack {
variable list {}
method push { element } {lappend list $element}
method pop {} {
set tmp [lindex $list end]
set list [lreplace $list end end]
return $tmp
}
method clear {} { set list {} }
}