beetlebug▾
/

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

ArgumentTypeDefaultDescription
PATHinterpreter 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

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

See also