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

  1. VARIABLES
  2.    Tcl allows the definition of variables and the use of their
  3.    values either through $-style variable substitution, the set
  4.    command, or a few other mechanisms.  Variables need not be
  5.    declared: a new variable will automatically be created each
  6.    time a new variable name is used.  Variables may be either
  7.    global or local.  If a variable name is used when a
  8.    procedure isn't being executed, then it automatically refers
  9.    to a global variable.  Variable names used within a
  10.    procedure normally refer to local variables associated with
  11.    that invocation of the procedure.  Local variables are
  12.    deleted whenever a procedure exits.  The global command may
  13.    be used to request that a name refer to a global variable
  14.    for the duration of the current procedure (this is somewhat
  15.    analogous to extern in C).
  16.  
  17.