Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: HoldAll

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66577] Re: HoldAll
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sat, 20 May 2006 04:48:08 -0400 (EDT)
  • References: <e4jukh$d94$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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"