Mathematica 9 is now available
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 smc.vnet.net
  • Subject: [mg100929] Re: Help with HoldAll needed
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 18 Jun 2009 04:55:07 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <h1aaej$8k1$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

MyFun[x_] := HoldComplete[x]
SetAttributes[MyFun, HoldAllComplete]

?
Regards
   Jens

	
Erich Neuwirth wrote:
> 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?
> 


  • Prev by Date: Re: Help with HoldAll needed
  • Next by Date: Plotting surface with thickness
  • Previous by thread: Re: Help with HoldAll needed
  • Next by thread: Re: Help with HoldAll needed