[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: C++ exceptions
From: David Faure <faure () kde ! org>
Date: 2005-12-05 14:42:25
Message-ID: 200512051542.25831.faure () kde ! org
[Download RAW message or body]
On Monday 05 December 2005 14:50, Tommi Mäkitalo wrote:
> Exceptionhandling makes errorhandling easy and safe especially in deep call
> stacks (more than 1;-) ).
Except when a destructor involved in the stack-unwinding makes a call which itself
raises an exception ... and then ... kaboom. Not allowed by the standard. abort().
With a rather confusing backtrace. Fun, isn't it?
I can tell you that I lost a long time on debugging exception problems in a non-kde project,
and I would certainly NOT say that exceptions make it "easy and safe". Certainly not.
No the C++ exceptions, I mean. Don't (anyone) bring Java into the mix. Exceptions
might be easy and safe in Java and some other languages, but in C++ they have very
nasty behaviors like the one above.
--
David Faure, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic