On 11/27/06, Andreas Pakulat <apaku@xxxxxx> wrote:
Some people have a different opinion about that. Exceptions vs. error
codes is a bit like the "best editor", or "best ide"...
I don't agree with this particular statement. Exception in most cases
are much better solution for handling errors (separate error handling
flow, clearer main (correct) flow, less error-prone, etc), but
sometimes there are technical restriction that may prevent it (buggy
compilers, hard code size restrictions, platform support, etc).
BTW, even in Qt3 exception worked fine with signals/slots. There is no
problem throwing exception at slot, and catch it at signal invocation.
The only problem is, that you can never rely on all slots being called
when exception is thrown.
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/