Cuting Errors

Stephane Ducasse ducasse at
Wed Jan 8 17:35:10 UTC 2003


I implementing a small bot that should popup a window when pumping into 
walls (a kind of error). Moreover, when I have a loop I only want to 
have one window showing up.

b1 := Bot new.
4 timesRepeat: [b1 go].

I should get only one window and not 4.
In fact I generated an error then caught it and I started to look around
to see how I can walk up in the execution stack until I arrived to the 
first expression.
Right now this is a nice idea but it does not work.

Does anybody have an example on how to walk into a method context until 
a certain point?
And kill it?
Does somebody already have to implement similar behavior?


Dr. Stéphane DUCASSE (ducasse at
  "if you knew today was your last day on earth, what would you do
  different? ... especially if, by doing something different, today
  might not be your last day on earth" Calvin&Hobbes

More information about the Squeak-dev mailing list