[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: C++ exceptions
From:       David Johnson <david () usermode ! org>
Date:       2005-12-05 4:13:02
Message-ID: 200512042013.02336.david () usermode ! org
[Download RAW message or body]

On Sunday 04 December 2005 04:22 pm, Guillaume Laurent wrote:
> 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.
>
> Well, that's how exceptions are meant to be used :-).

Exactly. Which is why they shouldn't be in libraries. The application 
author shouldn't be compelled to use a language feature he is not 
comfortable with. A library function that returns an classic error code 
can be used by both exception and no-exception using applications.

-- 
David Johnson
 
>> 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