qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] [OT] Hiding a QDialog?

Subject: Re: [Qt-interest] [OT] Hiding a QDialog?
From: <>
Date: Wed, 30 Jun 2010 14:27:41 +0200
Ian Thomson wrote on Wednesday, June 30, 2010 10:32 AM:

> ...
> do
> {
>    if (dlg.exec() != QDialog::Accepted)
>      return;
> } while (dlg.somethingIsWrong());

I consider "hidden" return statements in the middle of the code almost equally 
as bad as "goto": Murphy's Law dictates that during the lifetime of such a 
method Joe Programmer will add "important cleanup code" at the end of that 
method ;)

Yay, another code style discussion ;)

Cheers, Oliver
-- 
Oliver Knoll
Dipl. Informatik-Ing. ETH
COMIT AG - ++41 79 520 95 22
_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest

<Prev in Thread] Current Thread [Next in Thread>