[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: C++ exceptions
From: Jonas Widarsson <jonas () widarsson ! com>
Date: 2005-12-04 20:40:48
Message-ID: 200512042140.48383.jonas () widarsson ! com
[Download RAW message or body]
On Sunday 04 December 2005 21:16, David Johnson wrote:
> On Sunday 04 December 2005 11:47 am, Jonas Widarsson wrote:
> > I read about exceptions and like to use them in my KDE app to, but
> > first I'd like to hear the primary reasons why KDE didn't like
> > exceptions.
>
> I always understood that this restriction was for libraries, and not
> applications. The reason is that once a library throws an exception, it
> is expecting the application to catch it. It would be a problem if
> libraries never propagated exceptions, but it never works that way in
> practice.
According to my book, Stroustrup's The C++ Programming language, that is one
of the reasons why we *should* use exceptions. If it doesn't work in
practise, is it because users misunderstand the API for some reason, like
inadequate docs?
(Look, I am just wondering no reason for anyone to get upset)
--
Jonas Widarsson
tel: +46 271 152 00 - tel: +46 271 121 42 (hemma/home) - gsm: +46 70 539 64 79
MSN: jonas@widarsson.com ICQ: 72016688 jabber: jonas@widarsson.com
>> 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