MathGroup Archive 2006

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

Search the Archive

HoldAll


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: Graphics--triangle intersection
  • Next by Date: problem for "Fit"
  • Previous by thread: Re: Graphics--triangle intersection
  • Next by thread: Re: HoldAll