interp hidden
Gives the names of the hidden commands of an interpreter.
interp hidden ?PATH?
Description
Gives the name of each hidden command of the interpreter of PATH, or of the current interpreter with no PATH. A new interpreter, also a safe one, has no hidden commands in ztcl.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATH | interpreter path | {} | The interpreter. |
Returns
A list of names.
Examples
% set s [interp create -safe]; interp hidden $s
% interp hide $s list; interp hidden $s
list
Errors
% interp hidden nope
could not find interpreter "nope"
-errorcode TCL LOOKUP INTERP nope
Differences from Tcl
- Tcl hides the unsafe commands of a safe interpreter, so
interp hiddenlists them. ztcl does not make them in a safe interpreter.
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