home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
19_1.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
188b
|
15 lines
#
# Example 19-1
# Creating and deleting an interpreter.
#
interp create foo
#=> foo
interp eval foo {set a 5}
#=> 5
set sum [interp eval foo {expr {$a + $a}}]
#=> 10
interp delete foo