MathGroup Archive 1997

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

Search the Archive

Re: Re: How to clear all definitions?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg7260] Re: [mg7229] Re: [mg7220] How to clear all definitions?
  • From: "w.meeussen" <w.meeussen.vdmcc at vandemoortele.be>
  • Date: Tue, 20 May 1997 02:58:56 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

At 19:13 17-05-97 -0400, Allan Hayes wrote:
>Fri, 16 May 1997 02:31:21 -0400 (EDT)
>rkp at comwerx.net (Rob Peterson)
>[mg7220] How to clear all definitions?
>
>>is there some simple command which clears all definitions
>>and saves me from the close/restart routine?
>
>Rob:
>
>Clear["`*"]  (*clears all defns in current context*)
>ClearAll["`*"]  (*also clears Attributes and optional values*)
>Remove["`*"]  (* also removes the symbols*)
>
>Allan Hayes
>hay at haystack.demon.co.uk
>http://www.haystack.demon.co.uk/
>
>
>
TheBook 2.7.3 :
"In Mathematica there is a general convention that only built­in names should 
contain upper­case characters. Assuming that you follow this convention, you 
can use @ as a metacharacter to set up string patterns which match names you 
have defined, but avoid matching built­in names." 

BUT : It's a pitty that the dollar sign is defined as lower case:

my={a,b,c}
        {a,b,c}

myList={1,2,3}
        {1,2,3}

Names["@"]
        {"a","b","c","my","mylist"}

*** see? I don't get myList because of capital L inside:

Names["@*"]
        {"a","b","c","my","myList","$Aborted","$AnimationDisplayFunction",
          "$AnimationFunction","$BatchInput", ...very-long-list...,"$UserName",
          "$Version","$VersionNumber"}

too bad !


Dr. Wouter L. J. MEEUSSEN
eu000949 at pophost.eunet.be
w.meeussen.vdmcc at vandemoortele.be



  • Prev by Date: Re: Re: bug in Mathematica 3.0 ?
  • Next by Date: Re: Functions and evaluation, returning themselves
  • Previous by thread: Re: How to clear all definitions?
  • Next by thread: Re: How to clear all definitions?