[bt-devel] Programming Techniques

Holger Schurig bt-devel@crosswire.org
Wed, 13 Mar 2002 20:37:09 +0100


> > AFAIK Qt overloads the new operator, but I'm not sure about this.
> > And I never used exceptions, so I can't judge about this :)
>
> well, using exceptions is A Good Thing. Maybe we should discuss
> BibleTime and exceptions sometime in the future :)

Maybe the following info can be helpful in deciding if Exceptions are a 
good thing or not for Qt-Programs.

I'm not even sure if your claim that new uses exceptions is true. When 
you look into the RPM spec files that make qt2 or qt3 you will see the 
"--disable-g++-exceptions" line. This is a tremendous memory saver for 
Qt. The switch translates to the -fno-exceptions command line option 
for gcc (and maybe to other things inside the Qt source code).

Basically we don't ever get any exception out of Qt and we would use a 
different programming paradigma if we would use exceptions, wouldn't 
we?