[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent
 thread


Re: C++ and Qt
by M on Tuesday 21/Sep/2004, @06:30
No that has nothing to do with Qt its a only a compiler option. You would need some additional (though trivial) code in Qt. Exceptions are a much better way to do error handling, since you don't have to check for errors based on the return value of each function you call, but can simply monitor a block of code. Another advantage is that exceptions can be thrown during object creation in the constructor and that the return value of a function can be used for something else then an error/status value.
  Related Links
 ·   Articles on Developer
 ·   Also by M
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: C++ and Qt
by Christian Loose on Wednesday 22/Sep/2004, @06:23
> You would need some additional (though trivial) code in Qt

trivial? The code itself might be trivial, but it's by far not trivial to make a class exception safe. Take a look at the amount of articles about exception-safety on http://www.gotw.ca.

Christian
[ Reply To This | View ]
  • Re: C++ and Qt
    by M on Thursday 23/Sep/2004, @06:01
    Ok, agree you have to be a programmer to be able to do it.
    [ Reply To This | View ]

 
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Karate is the ideal counterpart to programming and really great to get your head cleared." -- Michael Brade
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]