[Date Index] [Thread Index] [Author Index]
Re: Re-virginating Manipulates?
I should think it a better idea to use "Global`*" instead of "`*", just to be sure you're really doing what you intend to do, say, in removing symbols or clearing symbols. If you look at the tutorial on Contexts, you'll see that `name is a symbol in the _current_ context. If Global is your current context, then Remove["`*"] and Remove["Global`*"] will do the same thing. If, however, you (or some package) has changed the context, then ` and Global` will be different contexts, so that using one where you intend to use the other could be dangerous. On 11/30/2010 4:03 AM, AES wrote: > At 2:48 PM +0200 11/29/10, Herman Kuun wrote: >> One suggestion:- >> >> Remove["`*"]; demo_a (* Cell one *) >> >> Remove["`*"]; demo_b (* Cell two *) >> >> : >> : >> Remove["`*"]; demo_last (* Cell last *) >> >> Best >> Herman > > Thank you! > > I had tried > > Remove["Global`*"]; demo_a (* Cell one *) > > and now I guess I (sort of) understand why this didn't do what was needed. > > [Still wondering a bit, however, why the syntax isn't > > Remove["*`*"]; OR Remove["$Current`*"]; > > or something similar? Note that (so far I can see) the Context > Tutorial does NOT give any illustration of the syntax "`*" (or `*) > as a valid syntax.] > -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305