From: "Priya Gopalan" <[EMAIL PROTECTED]>
This link
http://www.ps.uni-sb.de/alice/manual/library/thread.html#thread
talks about raising exceptions in threads by using:
raiseIn (thr, ex)
My Q:
1) Can the exception handling be made thread-specific?
i.e, can different threads react differently to the same exceptions?
Every expression can handle exceptions individually (by means of wrapping it
into an exception handler), so surely concurrent expressions (= threads) can
too. E.g.,
spawn (f () handle E => blurp)
Is that what you meant?
BTW, I strongly recommend avoiding raiseIn if at all possible. It produces
an asynchronous exception, which is hard to handle reliably -potential race
conditions are likely. The only valid use is to kill a thread (for which you
better use terminate).
- Andreas
_______________________________________________
alice-users mailing list
[email protected]
http://www.ps.uni-sb.de/mailman/listinfo/alice-users