RE: throwTo block statements considered harmful

2006-12-11 Thread Simon Peyton-Jones
Users | Subject: Re: throwTo block statements considered harmful | | The key problem is, at least in the presence of block/unblock, that | Exceptions are never reliably delivered. | | Never? Even in a function which is in a blocking state? | | The implementation of asynchronous signals

Re: throwTo block statements considered harmful

2006-12-08 Thread Cat Dancer
The key problem is, at least in the presence of block/unblock, that Exceptions are never reliably delivered. Never? Even in a function which is in a blocking state? The implementation of asynchronous signals, as described by the paper Asynchronous exceptions in Haskell Simon Marlow,

Re: throwTo block statements considered harmful

2006-12-08 Thread Chris Kuklewicz
Program A and B got word wrapped by mistake...damn it. Program A loop = block (print alive) loop main = do tid - forkIO loop threadDelay 1 killThread tid the above print alive forever while killThread stays blocked. Program B loop = block (print alive) loop yield