On Sunday 06 November 2005 13:38, Thiago Macieira wrote:
> Jeffrey Brendecke wrote:
> >What is the recommend practice for handling errors like this in KDE?

>
> Checking return values. Exceptions are used nowhere in KDE or Qt code,
> except when interfacing with libraries that do have them. In that case,
> all exceptions must be caught by the code that is doing the handling.
>
> Most of KDE is built with -fno-exceptions.


If I recall correctly, the reason for that was saving memory because g++'s
exception handling was particularly costly in that area. However, is this
reason still valid ? If not, then introducing exceptions in some cases would
probably be a good thing.

--
Guillaume.
http://www.telegraph-road.org

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<