INTERFACE

tcl.lang.CommandWithDispose -- interface for defining new Tcl commands that requires clean-up.

EXTENDS

Command

METHODS

abstract void disposeCmd()

DESCRIPTION

This interface is used to define more sophisticated commands that require clean-up when the command is deleted from an interpreter. When the command represented by the CommandWithDispose instance is deleted from an interpreter, either via the interp.deleteCommand method or when the interpreter itself is deleted, the disposeCmd method is invoked to free any resources that were allocated when the command was created.

EQUIVALENT C FUNCTIONS

Tcl_CmdDeleteProc

SEE ALSO

Interp, Command

KEYWORDS

command, create, delete, interpreter
Copyright © 1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.