The Fine Print: The following comments
are owned by whomever posted them.
( Reply )
|
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.
|
[
Reply To This | View ]
|
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 )
|