This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++: Exception handling in constructor


Hi Eljay,

On Wed, Dec 11, 2002 at 08:13:20AM -0600, John Love-Jensen wrote:

> > I don't see the point that the exceptions is re-thrown _automatically_
> > when it _is_ caught by the constructor...
> 
> *IF* you fall off the end of the constructor's catch block -- which is there
> to allow an opportunity for cleanup (and logging and debugging) -- *THEN*
> the exception *MUST* be propagated.

Ok, thats enlightening to me. I forgot to think about object destruction...
 
> Sincerely,
> --Eljay

Thanks for your comprehensible answers, Frank.
-- 
Frank Grimm // fgr@foobar-cpa.de
            // www.foobar-cpa.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]