MathGroup Archive 2006

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

Search the Archive

Re: HoldAll


Hi,

because HoldAll hinder the evaluation of the function
*arguments* but not the evaluation of the function itself.

Regards
   Jens

umrakmm at cc.umanitoba.ca wrote:
> Hello to everyone
> 
> Quick question with regards to why the HoldAll attribute no longer works once 
> you define the function.  For example, before the definition, it serves the 
> purpose it was meant to serve:
> 
> Input
> Clear[ff]
> SetAttributes[ff, HoldAll]
> ff[1, 2, 3 + 4]
> 
> Output
> ff[1, 2, 3 + 4]
> 
> But once I actually assign the "functional guts", it doesn't do what it did 
> above:
> ff[x_, y_, z_] := x + y + z;
> ff[1, 2, 3 + 4]
> 
> 10
> 
> Why?
> 
> Thanks to all
> MR
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 


  • Prev by Date: Re: problem for "Fit"
  • Next by Date: Re: problem for "Fit"
  • Previous by thread: Re: HoldAll
  • Next by thread: problem for "Fit"