From kde-devel Wed Dec 07 16:15:05 2005 From: Thiago Macieira Date: Wed, 07 Dec 2005 16:15:05 +0000 To: kde-devel Subject: Re: C++ exceptions Message-Id: <200512071415.15472.thiago () kde ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=113397216313146 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2041031437==" --===============2041031437== Content-Type: multipart/signed; boundary="nextPart1698957.xxABIa0rUb"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1698957.xxABIa0rUb Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Volker Lukas wrote: >Thiago Macieira wrote: >> [...] >> >> So, my recommendation stays: do not let exceptions propagate to inside >> the Qt libraries and, even more so, the KDE libraries. Doing so could >> cause problems for you later. > >With Qt, it could only cause problems later if Trolltech decided to > degrade there product to not be exception-safe at that later time. You did not understand what I meant: Qt is exception-safe only if compiled with -fexceptions. That is the=20 default. But since it doesn't use exceptions on its own, it can be compiled with=20 =2Dfno-exceptions to save space (what I said before: the exception table in= =20 libQtCore.so is larger than libglib.so entirely). So you can expect people to compile it with -fno-exceptions. If you write=20 applications that rely on exceptions being enabled in Qt, you'll be=20 shooting yourself in the foot. Don't do that. =2D-=20 Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org PGP/GPG: 0x6EF45358; fingerprint: E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 2. T=F3 cennan his weorc gearu, ymbe se circolwyrde, wear=F0 se c=E6gbord a= nd se=20 leohtspeccabord, and =FEa m=FDs c=F3mon lator. On =FEone d=E6g, he hine res= te. --nextPart1698957.xxABIa0rUb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQBDlwqTM/XwBW70U1gRAuefAJ9t0F7mxhWY8hdUM2Fgg5zJ9fHP9gCfebju s5X3nTBMgaPSdOTqBQ3quis= =XN/9 -----END PGP SIGNATURE----- --nextPart1698957.xxABIa0rUb-- --===============2041031437== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============2041031437==--