MathGroup Archive 2009

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

Search the Archive

Re: Help with HoldAll needed

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