MathGroup Archive 2004

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

Search the Archive

RE: Unexpected behaviour of HoldRest

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

>(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]]

Cheers,

Rolf Mertig
Mertig Consulting
http://www.mertig.com


  • 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