Re: C++ exceptions
On Monday 05 December 2005 14:50, Tommi M=E4kitalo wrote:[color=blue]
> Exceptionhandling makes errorhandling easy and safe especially in deep ca=[/color]
> stacks (more than 1;-) ).[/color]
Except when a destructor involved in the stack-unwinding makes a call which=
raises an exception ... and then ... kaboom. Not allowed by the standard. a=
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=
and I would certainly NOT say that exceptions make it "easy and safe". Cert=
No the C++ exceptions, I mean. Don't (anyone) bring Java into the mix. Exce=
might be easy and safe in Java and some other languages, but in C++ they ha=
nasty behaviors like the one above.
David Faure, [email]firstname.lastname@example.org[/email], sponsored by Trolltech to work on KDE,
Konqueror ([url]http://www.konqueror.org[/url]), and KOffice ([url]http://www.koffice.org[/url]).
>> Visit [url]http://mail.kde.org/mailman/listinfo/kde-devel#unsub[/url] to unsubscrib=[/color][/color]