MathGroup Archive 2008

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

Search the Archive

Re: ClearAll error message


carlos at colorado.edu wrote:
> Just out of curiosity.  The following ClearAll works as expected.
> 
>   name=Symbol["A"]; ClearAll[name];
> 
> But this elicits an error message:
> 
>   ClearAll[Symbol["A"]];
> 
> Why?  A non-standard argument evaluation?

*snip*

Correct: ClearAll does not evaluate its argument(s) (attribute *HoldAll*).


     In[1]:= ClearAll[Symbol["A"]]

     During evaluation of In[1]:= ClearAll::ssym: Symbol[A] is not
     a symbol or a string.

     In[2]:= Attributes[ClearAll]

     Out[2]= {HoldAll, Protected}

     In[3]:= ?HoldAll

     HoldAll is an attribute which specifies that all arguments to
     a function are to be maintained in an unevaluated form.


Regards,
-- Jean-Marc


  • Prev by Date: Re: Re: Help
  • Next by Date: Re: Variations on ShadowPlot3D
  • Previous by thread: Re: ClearAll error message
  • Next by thread: Re: ClearAll error message