[Newbies] Infinite loops

David T. Lewis lewis at mail.msen.com
Fri Dec 8 01:39:02 UTC 2017


On Thu, Dec 07, 2017 at 11:59:34AM -0500, obrienj wrote:
> I???m using a MacBook Pro and can???t find a way to escape an infinite loop such as this:
> 
> x := 0. [x >= 0] whileTrue: [x := x +1. Transcript show: 'infinite loop ', x; cr]
> 
> The the interrupt key (Alt- or Cmd-) does not work, instead I have to force quite Squeak.  Is there a reliable to way to escape an endless loop?
>

The interrupt key definitely should work in a case like this. I tried your example
on my Linux computer, and was able to interrupt it without any problem.

Could someone with a Mac please check this and make sure it works? Maybe it is a
key mapping issue (just guessing).

Dave



More information about the Beginners mailing list