interp delete
Removes child interpreters.
interp delete ?PATH ...?
Description
Removes the interpreter of each PATH, with its children and their children. The commands, the variables, and the aliases of a removed interpreter are gone. With no PATH, no interpreter is removed. The paths go in order, and the first one that does not exist stops the command with an error.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATH | interpreter path | none | An interpreter to remove. |
Returns
An empty string.
Examples
% interp create a; interp create {a b}; interp delete a; interp exists {a b}
0
% interp create x; interp create y; interp delete x y; interp children
% interp delete
Errors
% interp delete nope
could not find interpreter "nope"
-errorcode NONE
% interp delete {}
cannot delete the current interpreter
-errorcode NONE
Facts
- Capability
interp. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1