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

List:       kde-devel
Subject:    Re: Exceptions
From:       Thiago Macieira <thiago () kde ! org>
Date:       2010-03-27 7:12:44
Message-ID: 201003270813.02927.thiago () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Em Sábado 27. Março 2010, às 02.24.46, Pau Garcia i Quiles escreveu:
> Hello,
> 
> Actually, IIRC the reason why Qt does no use exceptions is because
> Nokia used to support broken/old compilers which do not support
> exceptions or did not support them right. Modern compilers should do
> exceptions right and maybe Nokia will change their policy towards
> exceptions when they only support modern compilers (from Qt 4.7 on,
> IIRC)

"no exceptions" is a coding choice, not a compiler requirement. It may have 
started with broken compilers and runtime performance penalties, but today 
it's just because we don't like them and they don't fit with our coding style.

So exceptions will not happen sooner than Qt 6. (Because we promised that Qt 5 
wouldn't be such a change from Qt 4)

> I'm 90% sure KDE inherited the "no exceptions" policy from Qt. OTOH,
> there *is* some code which uses exceptions in KDE, look for instance
> at KHTML (DOM, CSS, etc).

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

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