Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

RE: ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg16135] RE: [mg16095] ?
  • From: "Jean-Marie THOMAS" <jmthomas at agat.net>
  • Date: Sat, 27 Feb 1999 03:23:06 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

Try this:
g[t_]:=Module[{f,temp},
f=#+1&;temp=t;
Print[Information[temp]];
f at t]


****************************************
Jean-Marie THOMAS
mailto:jmthomas at agat.net
Conseil et Audit en Ingenierie de Calcul
Strasbourg, France
http://www.agat.net
****************************************

-----Original Message-----
From: Mitch Stonehocker [mailto:derivado at campus.ccm.itesm.mx]
To: mathgroup at smc.vnet.net
Subject: [mg16135] [mg16095] ?


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




  • Prev by Date: Using "Fit"
  • Next by Date: Re: Evaluate/Module[Correction]
  • Previous by thread: ?
  • Next by thread: Mathematica and Java