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

List:       kmail-devel
Subject:    Re: [PATCH] 3.1.x: Two very wrong, but non-critical bugs
From:       Don Sanders <sanders () kde ! org>
Date:       2003-07-18 5:43:07
[Download RAW message or body]

On Thursday 17 July 2003 23:46, Marc Mutz wrote:
> On Thursday 17 July 2003 13:16, Carsten Burghardt wrote:
> > I have to admit that Iīm generally no friend of asserts in
> > programs with user interfaces. They donīt tell the user "whops we
> > have a problem" but let the app crash and most of the people
> > donīt know what to do.
>
> Oh, come on. The last line (before the return statement) of the
> original code won't crash, now will it? At least the assert tells
> you _why_ it crashed.
>
> BTW: The user won't see the assert anyway, since -DNDEBUG makes
> them go away.
>
> BTW2: My next commit will introduce a goto. Don't scream, look at
> how you can use as well as mis-use _any_ C++ feature.

I'm ok with using goto in C++ to break out of multiply nested loops. 
Though it's a pity C++ doesn't have a break statement that takes a 
label like Java.

Having said that I agree with Bjarne's argument that in general it's a 
good idea to try to avoid spurious use of C++ features.

Don.
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic