Name

info

info option [arg...]

Return information about the Tcl interpreter.

info args procname

Return a list of the argument names to procedure procname.

info body procname

Return the body of procedure procname.

info cmdcount

Return total count of commands invoked by the interpreter.

info commands [pattern]

Return a list of Tcl commands (built-in and procedures) matching pattern. Return all commands if pattern is omitted.

info complete command

Return 1 if command is complete (i.e., no unmatched quotes, braces, etc.).

info default procname arg varname

Return 1 if argument arg of procedure procname has a default argument value, otherwise 0. If there is a default value, it is placed in variable varname.

info exists varName

Return 1 if local or global variable varName exists.

info globals [ pattern]

Return a list of global variables matching pattern. Return all variable names if pattern is omitted.

info hostname

Return system hostname.

info level [number]

If number is not specified, return a number indicating the current procedure stack level, or 0 for global level. With number, return a list containing the name and arguments for the procedure at the specified stack level.

info library

Return the name of the standard Tcl library directory; the same as global variable tcl_library.

info loaded [interp]

Return a list of the currently loaded packages for interpreter interp (default is for all interpreters; use empty string for current interpreter).

info locals [pattern]

Return list of local variables, including procedure arguments, that match pattern (default is all).

info nameofexecutable

Return full name of file from which application was invoked.

info patchlevel

Return Tcl patch level; same as global variable tcl_patchLevel.

info procs [pattern]

Return list of Tcl procedures matching pattern, or all procedures if pattern is omitted.

info script

Return name of Tcl file being evaluated.

info sharedlibextension

Return the platform-dependent file extension used for shared libraries, or an empty string if shared libraries are not supported.

info tclversion

Return Tcl version; same as global variable tcl_version.

info vars [pattern]

Return a list of local and global variables matching pattern, or all variables if pattern is omitted.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset