From kde-devel Wed Dec 07 09:59:24 2005 From: Volker Lukas Date: Wed, 07 Dec 2005 09:59:24 +0000 To: kde-devel Subject: Re: C++ exceptions Message-Id: X-MARC-Message: https://marc.info/?l=kde-devel&m=113395186303299 Thiago Macieira wrote: > [...] > > Allowing the exception to reach the Qt signal/slot mechanism is bound to > fail and, quite possibly, core dump. This does not seem to be true. There is no place in the Qt documentation which forbids this (or at least no prominent one), and Trolltech actually treats problems which arise in the situation you described as bugs. So while letting exceptions leave a slot or event-handler might not be recommended practice, Qt is at least intended to work correct in that case. > [...] > > I don't think exception handling in kdelibs code is something you can > expect realistically. For one thing, Qt 4 has been released and it does > not use exceptions. So KDE Library code will probably follow suit. Qt does use exceptions. It might not contain many throw-statements, but it uses the throwing forms of "new", and it lets exceptions (from new or from user code) propagate out of the library. >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<