CLASS
tcl.lang.Interp -- This manual entry contains methods to create and dispose of Interps.
CONSTRUCTORS
METHODS
void dispose()
OTHER METHODS
DESCRIPTION
Interp
dispose
EQUIVALENT C FUNCTIONS
SEE ALSO
KEYWORDS

CLASS

tcl.lang.Interp -- This manual entry contains methods to create and dispose of Interps.

CONSTRUCTORS

Interp()

METHODS

void dispose()

OTHER METHODS

setVar, traceVar, createCommand, eval, setResult,
backgroundError, getNotifier, setAssocData, pkgRequire

DESCRIPTION

Interp
The Interp constructor takes no arguments and creates and initializes an instance of the Interp class. Built-in Tcl commands are created, and global variables are initialized.

dispose
The dispose method frees all resources used by the interpreter. Because references to the interpreter may be stored in global hashtables, the Java garbage collector cannot be relied upon to automatically free resources used by the interpreter. This method must be called when an interpreter is no longer in use. The dispose method can safely be called multiple times. However, after the dispose method is invoked, the interpreter is no longer in a useable state and none of its other methods should be called.

EQUIVALENT C FUNCTIONS

Tcl_CreateInterp, Tcl_DeleteInterp

SEE ALSO

Interp, Eval, setAssocData

KEYWORDS

built in commands, dispose, free, garbage collection, global varaibles, initialize, interpreter, reference
Copyright © 1994-1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.