MathGroup Archive 2006

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

Search the Archive

HoldAll

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66550] HoldAll
  • From: umrakmm at cc.umanitoba.ca
  • Date: Fri, 19 May 2006 03:40:50 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

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/


  • Follow-Ups:
    • Re: HoldAll
      • From: "Igor C. Antonio" <igora@wolf-ram.com>
    • Re: HoldAll
      • From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
  • Prev by Date: Graphics--triangle intersection
  • Next by Date: problem for "Fit"
  • Previous by thread: Re: Graphics--triangle intersection
  • Next by thread: Re: HoldAll