Re: Variable containing code
- To: mathgroup at smc.vnet.net
- Subject: [mg75002] Re: [mg74937] Variable containing code
- From: Carl Woll <carlw at wolfram.com>
- Date: Fri, 13 Apr 2007 02:18:21 -0400 (EDT)
- References: <200704120847.EAA24473@smc.vnet.net>
dh wrote: >Hello, > >how can one get at the value of a variable if this value is executable > >code? E.g. consider variable t1:= Print["Hello"]. How can I set the > >value of a second variable t2 to the value of t1 without executing the code? > >Daniel > > > > Try OwnValues[t1] Carl Woll Wolfram Research
- References:
- Variable containing code
- From: dh <dh@metrohm.ch>
- Variable containing code