MathGroup Archive 2004

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

Search the Archive

Re: RE: Unexpected behaviour of HoldRest


On 23 Jan 2004, at 08:15, Rolf Mertig wrote:

>> (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
>
>
>
I wonder why you feel you need it since:


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


Sequence[]


and


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


Sequence[]



Andrzej Kozlowski
Chiba, Japan
http://www.mimuw.edu.pl/~akoz/


  • Prev by Date: Export problem with Mathematica 4.1/Mac OS 9
  • Next by Date: Re: Related rates
  • Previous by thread: RE: Unexpected behaviour of HoldRest
  • Next by thread: Re: RE: Unexpected behaviour of HoldRest