MathGroup Archive 2003

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

Search the Archive

Re: Remove help

  • To: mathgroup at smc.vnet.net
  • Subject: [mg42060] Re: Remove help
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Tue, 17 Jun 2003 05:44:08 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 6/16/03 at 3:58 AM, rex_chaos at 21cn.com (Rex_chaos) wrote:

>rpm::"shdw": "Symbol rpm appears in multiple contexts
>{"MyPackage`OWM`", "Global`"}; definitions in context
>{"MyPackage`OWM`"} may shadow or be shadowed by other definitions."

>In order to let rpm return the value defined in the package rather
>then that defined in Global context. I inserted the code into my
>package

>Remove[rpm]; rpm = \[Gamma];

A better choice would be to use a utility that prevents shawdowing. Take a look at the Wolfram resource site and search for anti-shadow or shadow. There are a couple of packages that do this quite nicely.

>BTW, if rpm has never been defined in the Global context. Invoking
>"Remove[rpm]" will print a warning. However can I know if a variable
>has been defined or not?

Names["Global`*"] will give you a list of all symbols defined in the Global context


  • Prev by Date: Re: Rounding Errors and Irregulars?
  • Next by Date: Re: ListNecklaces of n beads of |c| different colors (n!=c)?
  • Previous by thread: Remove help
  • Next by thread: Re: Remove help