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

Gabriel Dos Reis gdr at integrable-solutions.net
Mon Jul 18 21:12:44 UTC 2005


Ted Baker <baker at cs.fsu.edu> writes:

| 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.

I would guess the natural question is whether it succeeded.  I would not
bet money, when I encounter things NullPointerException where I have
been told there is no pointer.  But, I guess we're getting deeper into 
distractions :-) 

| 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.

yeah, I doubt it would be C++ ;-p

-- Gaby



More information about the c++-pthreads mailing list