Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2009

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

Search the Archive

Re: Help with HoldAll needed

  • To: mathgroup at
  • Subject: [mg100923] Re: Help with HoldAll needed
  • From: Raffy <raffy at>
  • Date: Thu, 18 Jun 2009 04:54:01 -0400 (EDT)
  • References: <h1aaej$8k1$>

On Jun 17, 1:45 am, Erich Neuwirth <erich.neuwi... at>
> I define
> MyFun[x_]:=Unevaluated[x]
> SetAttributes[MyFun,HoldAllComplete]
> MyFun[2 = 3]
> still evaluated the argument and of course produces an error
> I would like to get the unevaluated expression to be able
> to separate the first argument.
> In fact, I would like MyFun to be a macro which allows me
> to play list processing games with the arguments.
> How can this be accomplished?

Use Hold instead of Unevaluated.

  • Prev by Date: How can I parse arguments of an expression unevaluated?
  • Next by Date: Re: Time for an integration
  • Previous by thread: Re: Help with HoldAll needed
  • Next by thread: Re: Help with HoldAll needed