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

List:       kde-devel
Subject:    Re: kded crashes my system (X)
From:       Steffen Hansen <stefh () mip ! sdu ! dk>
Date:       1999-06-27 21:18:04
[Download RAW message or body]

On Sun, 27 Jun 1999, Simon Hausmann wrote:

> On Sun, 27 Jun 1999, David Faure wrote:
> > 
> > I know, easy to say, not to do (the "<<" operator doesn't really allow good
> > error checking !).
> 
> I fully agree with you.
> 
> Well, we can at least do some "minimum" handling by replacing the ASSERT
> calls (like in line 205 in kregfactories.cc) with proper error handling
> and read the registry in a "safe" way then (as you said it) , although I
> admit that it's no real solution.
> 
> Hmmm... Is there any way to get rid of the operator way or to introduce
> error handling with it? Perhaps something like with the >>= operators of
> CORBA::Any ?

This really looks like a case where exceptions should be used for error
handling.

greetings,
-- 
Steffen Hansen                            
email: stefh@mip.sdu.dk, stefh@imada.sdu.dk, hansen@kde.org 
URL:   http://www.mip.sdu.dk/~stefh       

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

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