Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1992

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

Search the Archive

Seeing variables outside of Packages.

  • To: mathgroup at
  • Subject: Seeing variables outside of Packages.
  • From: Scott Herod <sherod at>
  • Date: Thu, 19 Nov 92 15:40:32 MST

 I want to write a package that will define a variable and some
functions and let the user operate on the variable using the
functions in the package.  An example might be:


tnirP::usage = "Look at it yourself!"


    f = myname;

    tnirP[f_] := Print[f];



What I want to be able to do is:

->Mathematica 2.0 for SPARC
->Copyright 1988-91 Wolfram Research, Inc.
->-- X11 windows graphics initialized --

->In[1]:= <<test.m

->In[2]:= tnirP[f]In[2]:= tnirP[f]

But the output is not that wanted instead you must do:

->In[3]:= tnirP[MyPackage`Private`f]

Again not exactly the output wanted appears.
Is there some way to have

->In[2]:= tnirP[f]



Scott Herod
Applied Mathematics
University of Colorado, Boulder
(sherod at

  • Prev by Date: Math typesetting in plot labels
  • Next by Date: LIst of BUGS ?
  • Previous by thread: Re: Math typesetting in plot labels
  • Next by thread: LIst of BUGS ?