Apparent bug in Squeak's exception handling - false alarm..

Stephen Pair spair at acm.org
Mon Dec 30 14:30:15 UTC 2002


Chris Muller wrote:
> Please disregard my note below..
> 
> I confused myself by signaling concrete Notifications in my 
> code, not remembering that other subclasses of Notification 
> would be getting caught in my handler.  Oops!
> 
> Probably better to subclass with my own and use that..
> 
> Sorry.
>  - Chris
> 
> PS - that is an clever way to access a preference and still 
> have an apparently thread-safe way to change it dynamically, 
> using a resumable exception!

Chris,

You should have a look at RuntimeEnvironments (on SqueakMap).  It
accomplishes that (and more), but in a less kludgy way than using
exceptions.  Also, it works even when you fork a new process.

- Stephen




More information about the Squeak-dev mailing list