User Tools

Site Tools


local

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

local [2006/08/01 04:13] (current)
Line 1: Line 1:
 +======Synopsis:​======
 +[[local]] <​variable name> ​ \\
 +[[local]] <​variable name>,<​variable name> \\
 +[[local]] <​variable name> <​value>​ \\
 +[[local]] -<​variable name> ​ \\
 +[[local]] <​structure>​. \\
 +[[local]] -dump
 +
 +======Description:​======
 +The [[local]] command creates local variables (as opposed to global variables).
 +A local variable can be used until the end of the //current atomic scope//.
 +
 +|<​varname>​|Create a local variable, initial value is the empty string.|
 +|<​varname1,​varname2>​|Declare multiple variables to be local variables|
 +|<​varname>​ <​value>​|Declare a local variable and give it an initial value|
 +|-<​varname>​|Delete a local variable|
 +|<​structure>​.|Declare all variables of the form <​structure>​.<​var>​ to be local|
 +|-dump|Remove all local variables in the current atomic scope|
 +
 +Local variables are created implicitly by several commands which I should
 +be listing here.
 +
 +======Examples:​======
 +To give the local variable $blah a value of "this is a test":
 +      local blah this is a test
 +
 +To give both $blah and $foo a value:
 +      local blah,foo local vars are neat
 +
 +======History:​======
 +The [[local]] command first appeared in EPIC4pre0.009.
 +# $EPIC: local.txt,v 1.3 2006/08/01 04:07:08 sthalik Exp $
  
local.txt ยท Last modified: 2006/08/01 04:13 (external edit)