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 2002

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

Search the Archive

Re: Bug in Sum causes index variable to remain set?

  • To: mathgroup at
  • Subject: [mg33898] Re: [mg33838] Bug in Sum causes index variable to remain set?
  • From: Andrzej Kozlowski <andrzej at>
  • Date: Mon, 22 Apr 2002 00:57:30 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

On Sunday, April 21, 2002, at 06:59  PM, Martin Jenkins wrote:
> If f is something like Subscript, wrapping in a Block is impractical, 
> as the
> start of the Block will clear any other values that is assigned to f, 
> which
> may still have a bearing on the situation.  I maintain my belief that 
> unset
> at the end is the best way around this problem.  I will, however, need 
> to
> use something that will penetrate If, such as /. anyway, so I think I'll
> just use =. at the end.

I find it difficult to imagine why you would like the iterator to have 
any specific meaning. It seems to me very likely that whatever you are 
doing can be done better in another way and that iterators ought to be 
left alone to perform their proper role as "dummy" variables whose names 
or values do not matter. It is really because I do not think that your 
way of using iterators is "correct" (at least in the sense "as intended 
by the designers of the program") that I do not think this behaviour can 
be considered a bug.


  • Prev by Date: RE: Drawing a Glass Cylinder?
  • Next by Date: Re: very simple plot format
  • Previous by thread: Re: Bug in Sum causes index variable to remain set?
  • Next by thread: Help with 3D graphics