
10 Feb
2004
10 Feb
'04
3:41 p.m.
Peter Dimov wrote: [...]
One case where "propagating" exceptions is wrong is when the thread is not supposed to be joined.
When the thread is not supposed to be joined, then all expected exceptions [e.g. thread cancelation or exit] should be caught (but "ignored") and all unexpected exceptions should still terminate the entire process at throw point (that's not the way how exception specification work currently). Some exceptions listed in this or that throw spec may be expected and some not. (Perfect forwarding might help somewhat here. ;-) ) regards, alexander.