info constsTcl 9.1 only
Gives the names of the visible variables that const made.
info consts ?PATTERN?
Description
Gives the name of each variable of the current scope that is a constant of const. With PATTERN, the list has only the names that match it as a glob pattern.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| PATTERN | glob pattern | none | The names to keep. |
Returns
A list of variable names.
Examples
% const k 1; set v 2; info consts
k
% const k 1; info consts z*
Errors
% info consts a b
wrong # args: should be "info consts ?pattern?"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 only.
- Since
- ztcl 1.0.0-beta.1