[SPAM] - Re: [c++-pthreads] pthread_cancel and EH: let's try this again - Email found in subject

Ted Baker baker at cs.fsu.edu
Mon Jul 18 20:57:09 UTC 2005


On Mon, Jul 18, 2005 at 10:38:30PM +0200, Gabriel Dos Reis wrote:
> "Peter Dimov" <pdimov at mmltd.net> writes:
> 
> 
> [...]
> 
> | > 2) Are exceptions safe, in general?
> | 
> | We've spent the last decade in learning how to use them safely. It
> | doesn't make sense to discard this knowledge.
> 
> Indeed, we don't need to prove them safe in general.  We only need to
> know how to use them safely in appropriate circumstances.  Just like,
> say pointers. 

Thanks for the more up-to-date analogy. :)

My analogy was "gotos", for which the safe pattern 
eventually made their way into standard control structures.

In Java, an attempt was made to do something similar for pointers,
like it or not.

Maybe it is time for a language to look at exceptions along the
same lines, i.e., to build in structures for exceptions that rule
out the most frequent forms of erroneous usage.

--Ted



More information about the c++-pthreads mailing list