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

List:       kde-devel
Subject:    Re: code convention
From:       Kevin Krammer <krammer () kde ! org>
Date:       2014-06-29 11:47:30
Message-ID: 2525504.Qd562HRRsn () persephone
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday, 2014-06-28, 08:52:53, Rodrigo Bonifacio wrote:
> Dear all, is there any code guideline that recommends developers to avoid
> the use of exception handling mechanisms in KDE applications?

This is primarily a result of Qt only being partially exception safe:
http://qt-project.org/doc/qt-5/exceptionsafety.html

It is probably not documented separately again on KDE's side.

You can always use exceptions if you make sure they never leave your code into 
Qt's code, e.g. catch them in slots so they don't get into the signal/slot 
code.

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

["signature.asc" (application/pgp-signature)]

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