beetlebug▾
/

interp children

Gives the names of the children of an interpreter.

interp children ?PATH?

Description

Gives the name of each child of the interpreter of PATH, or of the current interpreter with no PATH. The list has only the direct children: a child of a child is in the list of its own parent. The order of the list is not the order of the creation, so sort it for a fixed order.

Arguments

ArgumentTypeDefaultDescription
PATHinterpreter path{}The interpreter.

Returns

A list of names.

Examples

% interp create a; interp create b; lsort [interp children]
a b

% interp create {a c}; interp children a
c

Errors

% interp children nope
could not find interpreter "nope"
-errorcode TCL LOOKUP INTERP nope

% interp children a b
wrong # args: should be "interp children ?path?"
-errorcode TCL WRONGARGS

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