This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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: c++ char exceptions


You're right, I wasn't thinking, if an exception isn't caught before it
leaves main it aborts the program.

So maybe codewarrior has a bug!

Mike

On Tue, 2002-04-23 at 06:33, Lassi A. Tuura wrote:
> > That shouldn't matter.  At the worst it should mean that the exception is not
> > caught by any of the catch clauses given, so the "return 0" would be taken.
> 
> It does matter -- in this case the exception was not handled, and
> therefore terminate() gets called, which probably called abort().  That
> is, the "return 0" is never taken, the exception leaks outside main().
> 
> //lat
> -- 
> Behold the turtle.  He makes progress only when
> he sticks his neck out.  --James Bryant Conant
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
-- 
Michael D. Crawford
GoingWare Inc. - Expert Software Development and Consulting
crawford@goingware.com
http://www.goingware.com/

     Tilting at Windmills for a Better Tomorrow.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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