Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: How to *really* remove a symbol?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110923] Re: How to *really* remove a symbol?
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Sun, 11 Jul 2010 06:21:47 -0400 (EDT)

Hi Yaroslav,

I can not reproduce the behavior you report. M7.0, Win Xp. Once the symbol
is removed,
OwnValues[symbol] always returns an empty list. In fact, I never heard of
anything different. One
problematic case is when there remain symbols whose definitions contained
the removed
symbol - it is then changed to Removed[symbol] in those, but you seem to be
worried
about something else.

May be you could provide an exact sequence of inputs which lead to the
behavior you observed?

Regards,
Leonid


On Sat, Jul 10, 2010 at 11:59 AM, Yaroslav Bulatov <yaroslavvb at gmail.com>wrote:

> I occasionally run into a situation where a symbol refuses to get
> removed. For instance I can do the following
>
> ClearAll[appPlot];
> Clear[appPlot];
> Remove[appPlot];
> Information[appPlot];
> OwnValues[appPlot]
>
> and it displays {}, and "Information" reports nothing for that symbol.
> But then if I issue "OwnValues[appPlot]" in the next cell, it gets
> initialized to some value I used for it before and I get
> {HoldPattern[appPlot] :> ....
>
> So far the only thing I found that fixes this is restarting the
> kernel. Is there any other way of removing this symbol?
> I'm on Mathematica 7.0.0 for MacOS
>
>


  • Prev by Date: multivariate interpolation
  • Next by Date: Re: 3D view direction
  • Previous by thread: Re: How to *really* remove a symbol?
  • Next by thread: Re: How to *really* remove a symbol?