MathGroup Archive 2007

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

Search the Archive

Can't abort a loop with Print inside (V6)

  • To: mathgroup at
  • Subject: [mg83066] Can't abort a loop with Print inside (V6)
  • From: Frank Hu <frank1998 at>
  • Date: Fri, 9 Nov 2007 05:15:54 -0500 (EST)


It seems in Version 6 one can't abort  a loop if there's a Print  
statement inside.  Try the following code

For[i = 1, i < 1000, ++i, Print[i]]

No matter doing it from the menu or with the keyboard shortcut, the  
abort action will be ignored.  Under 5.2, the code stops right away  
when I hit Cmd-.

Sometime, trying to abort would even freeze the whole program,  
causing lost sessions.  I'm running on Mac OS X 10.4.10.  Any  
suggestions of what's going on?  Is this a bug or a new feature?


  • Prev by Date: negative FileByteCount
  • Next by Date: Re: Page numbers in Mathematica
  • Previous by thread: Re: negative FileByteCount
  • Next by thread: Re: Can't abort a loop with Print inside (V6)