Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

RE: Unexpected behaviour of HoldRest

  • To: mathgroup at
  • Subject: [mg45738] RE: Unexpected behaviour of HoldRest
  • From: "Rolf Mertig" <rolf at>
  • Date: Fri, 23 Jan 2004 03:15:22 -0500 (EST)
  • Reply-to: rolf at
  • Sender: owner-wri-mathgroup at

>(unless it had the SequenceHold or HoldAllComplete attribute, but it has
>neither of them)
Which is very unfortunate, and it has been suggested in the past that SequenceHold
should be added to If.
Until this suggestion hopefully gets realized
in a future Mathematica version I use work-arounds like:

ReleaseHold[If[1 == 1, Hold[Sequence][], 2]]


Rolf Mertig
Mertig Consulting

  • Prev by Date: rendering under linux
  • Next by Date: problems with font display
  • Previous by thread: Re: Re: Unexpected behaviour of HoldRest
  • Next by thread: Re: RE: Unexpected behaviour of HoldRest