MathGroup Archive 2010

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

Search the Archive

HoldForm[0] (???)

  • To: mathgroup at
  • Subject: [mg113898] HoldForm[0] (???)
  • From: kj < at>
  • Date: Wed, 17 Nov 2010 05:30:54 -0500 (EST)

I came across this puzzling bit while inspecting a trace:

In[416]:= Quiet[InputForm[Trace[First[]][[2, 1]]]]

HoldForm[Message[First::argx, HoldForm[First], HoldForm[0]]]

That HoldForm[0] mystifies me.  It looks completely unnecessary.
What harm could come from evaluating 0 in this case?  It can't
possibly be slower than "evaluating" HoldForm[0].

By the same token, HoldForm[First] looks almost as unnecessary.
(I suppose that there could be some bizarre situation in which
First won't evaluate to First, but I have a hard time imagining


PS: FWIW, First::argx gets interpreted as General::argx, which
evaluates to

"`1` called with `2` arguments; 1 argument is expected."

  • Prev by Date: FindFit Mathematica 7
  • Next by Date: Serious problem with CDF[MultinormalDistribution...
  • Previous by thread: Re: FindFit Mathematica 7
  • Next by thread: Serious problem with CDF[MultinormalDistribution...