home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / dirs / tcl_447.lzh / TCL / tcl.lzh / tcl / help / info < prev    next >
Text File  |  1990-05-03  |  3KB  |  88 lines

  1.  info option arg arg ...
  2.       Provide information about various internals to the Tcl
  3.       interpreter.  The legal option's (which may be
  4.       abbreviated) are:
  5.  
  6.       info args procname
  7.     Returns a list containing the names of the
  8.     arguments to procedure procname, in order.
  9.     Procname must be the name of a Tcl command
  10.     procedure.
  11.  
  12.       info body procname
  13.     Returns the body of procedure procname.  Procname
  14.     must be the name of a Tcl command procedure.
  15.  
  16.       info commands [pattern]
  17.     If pattern isn't specified, returns a list of
  18.     names of all the Tcl commands, including both the
  19.     built-in commands written in C and the command
  20.     procedures defined using the proc command. If
  21.     pattern is specified, only those names matching
  22.     pattern are returned.  Matching is determined
  23.     using the same rules as for string match.
  24.  
  25.       info cmdcount
  26.     Returns a count of the total number of commands
  27.     that have been invoked in this interpreter.
  28.  
  29.       info default procname arg varname
  30.     Procname must be the name of a Tcl command
  31.     procedure and arg must be the name of an argument
  32.     to that procedure. If arg doesn't have a default
  33.     value then the command returns 0.  Otherwise it
  34.     returns 1 and places the default value of arg into
  35.     variable varname.
  36.  
  37.       info globals [pattern]
  38.     If pattern isn't specified, returns a list of all
  39.     the names of currently-defined global variables.
  40.     If pattern is specified, only those names matching
  41.     pattern are returned.  Matching is determined
  42.     using the same rules as for string match.
  43.  
  44.       info level [number]
  45.     If number is not specified, this command returns a
  46.     number giving the stack level of the invoking
  47.     procedure, or 0 if the command is invoked at top-
  48.     level.  If number is specified, then the result is
  49.     a list consisting of the name and arguments for
  50.     the procedure call at level number on the stack.
  51.     If number is positive then it selects a particular
  52.     stack level (1 refers to the top-most active
  53.     procedure, 2 to the procedure it called, and so
  54.     on);  otherwise it gives a level relative to the
  55.     current level (0 refers to the current procedure,
  56.     -1 to its caller, and so on).  See the uplevel
  57.     command for more information on what stack levels
  58.     mean.
  59.  
  60.       info locals [pattern]
  61.     If pattern isn't specified, returns a list of all
  62.     the names of currently-defined local variables,
  63.     including arguments to the current procedure, if
  64.     any.  If pattern is specified, only those names
  65.     matching pattern are returned.  Matching is
  66.     determined using the same rules as for string
  67.     match.
  68.  
  69.       info procs [pattern]
  70.     If pattern isn't specified, returns a list of all
  71.     the names of Tcl command procedures.  If pattern
  72.     is specified, only those names matching pattern
  73.     are returned.  Matching is determined using the
  74.     same rules as for string match.
  75.  
  76.       info tclversion
  77.     Returns the version number for this version of Tcl
  78.     in the form x.y, where changes to x represent
  79.     major changes with probable incompatibilities and
  80.     changes to y represent small enhancements and bug
  81.     fixes that retain backward compatibility.
  82.  
  83.       info vars
  84.     Returns a list of all the names of currently-
  85.     visible variables, including both locals and
  86.     currently-visible globals.
  87.  
  88.