Re: ?
- To: mathgroup at smc.vnet.net
- Subject: [mg16214] Re: [mg16095] ?
- From: Andrzej Kozlowski <andrzej at tuins.ac.jp>
- Date: Fri, 5 Mar 1999 00:40:47 -0500
- Sender: owner-wri-mathgroup at wolfram.com
?x or ??x or Information[x] do not produce any output. Hence c=?temp is equivalent to c= Null and not very helpful.Instead you should use Definition[x] or, if you want all definitions of all symbols needed to define x to be included (recursively), FullDefinition[x]. On Thu, Feb 25, 1999, Mitch Stonehocker <derivado at campus.ccm.itesm.mx> wrote: >Hi, >In the context of a larger process (in a Module[] for example) I want to >see what the global/local definition of a variable. I have tried the >following ideas. > >In[1]:=temp=a+b > >Out[1]=a+b > >In[2]:=?temp >"Global`temp" >temp = a + b > >In[3]:=Print[temp] >a+b > >IIn[4]:=Print[?temp] >Syntax::"bktmcp": > "Expression ?"?!?(Print[?(? temp]?)?)?" has no closing >?"?!?(?"]?"?)?".?!? >?(?"?"?)" >Print[?temp] > >In[4]:=c=?temp >"Global`temp" >temp = a + b > >In[5]:=Print[c] >Null > >Any other ideas? >Thanks for the help, >Mitch Stonehocker >Mexico City > > Andrzej Kozlowski Toyama International University JAPAN http://sigma.tuins.ac.jp/ http://eri2.tuins.ac.jp/ Andrzej Kozlowski Toyama International University JAPAN http://sigma.tuins.ac.jp/ http://eri2.tuins.ac.jp/