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

List:       kde-devel
Subject:    Re: C++ exceptions
From:       Volker Lukas <vlukas () gmx ! de>
Date:       2005-12-07 18:05:20
Message-ID: dn7866$et0$1 () sea ! gmane ! org
[Download RAW message or body]

Thiago Macieira wrote:
> [...]
> So you can expect people to compile it with -fno-exceptions. If you write
> applications that rely on exceptions being enabled in Qt, you'll be
> shooting yourself in the foot. Don't do that.
No. The user who disables it is a fault here. Exception support is needed
for *correct* programs to be executed *correctly*. If the user willfully
asks the compiler to produce incorrect output, he has to live with the
outcome. He can not just assume that nobody uses exceptions in conjunction
with Qt.

If, on the other hand, it was the case that Qt actually did not allow
throwing exceptions from inside event-handlers or slots, then the user
could employ -fno-exceptions, because in that case an exception leaving the
handler or slot would already be erroneous.


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