An (undocumented?) feature of CompoundExpression and Out
- To: mathgroup at smc.vnet.net
- Subject: [mg76090] An (undocumented?) feature of CompoundExpression and Out
- From: Szabolcs <szhorvat at gmail.com>
- Date: Wed, 16 May 2007 05:26:20 -0400 (EDT)
- Organization: University of Bergen
I always thought that % was set to the result of the last evaluation.
But it seems that this is not always the case.
In:= 5;; (* Mathematica 5.2 *)
Note that a; and a;Null are both equivalent to CompoundExpression[a,
Null]. It seems that all those arguments at the end of
CompoundExpression that evaluate to Null are ignored when % is set.
I never expected this behaviour, therefore I have never before tried to
use % when the previous expression was terminated by a semicolon.
I hope that this information will be useful for someone who thought
about ; the same way as I did. :-)
Prev by Date:
Re: weird behavior when plotting multiple functions in 6.0
Next by Date:
Re: Compatibility woes
Previous by thread:
Re: New 3D graphics primitives in Mathematica 5.2
Next by thread:
bug (?) in Integrate (5.2)