Re: How can one define variables to be local by default ?
- To: mathgroup at smc.vnet.net
- Subject: [mg57121] Re: [mg57114] How can one define variables to be local by default ?
- From: Chris Chiasson <chris.chiasson at gmail.com>
- Date: Mon, 16 May 2005 21:35:19 -0400 (EDT)
- References: <200505161106.HAA09330@smc.vnet.net>
- Reply-to: Chris Chiasson <chris.chiasson at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
Use the Variables command. Replace Power with List. Delete(Cases) the global variables from the output. On 5/16/05, Enrico Arrigoni <arrigoni at itp.tu-graz.ac.at> wrote: > Module allows me to specify that > a given set of variables should be local. > > However, one may forget to include some variables in the list, so that one would like to have a command specifying > that ALL variables within an expression are local, (except possibly for a list of variables declared as global at the beginning). > > Is there a way to do that? > I tried by changing the COntext and COntextPath (using BeginPackage and Begin) but this does it only the first time > > Thanks > > Enrico > > -- Chris Chiasson http://chrischiasson.com/ 1 (810) 265-3161
- References:
- How can one define variables to be local by default ?
- From: Enrico Arrigoni <arrigoni@itp.tu-graz.ac.at>
- How can one define variables to be local by default ?