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

List:       kde-devel
Subject:    Re: kded crashes my system (X)
From:       David Faure <david.faure () insa-lyon ! fr>
Date:       1999-06-27 22:09:49
[Download RAW message or body]

On Sun, Jun 27, 1999 at 11:33:13PM +0200, Simon Hausmann wrote:
> On Sun, 27 Jun 1999, David Faure wrote:
> > > error handling with it? Perhaps something like with the >>= operators of
> > > CORBA::Any ?
> > What does >>= do ?   - you have to get used to the fact that nobody understands
> > you when you talk about CORBA stuff, in this case not even me :)))
> 
> Sorry for the trouble :-]
> 
> The point about the extraction operators of CORBA::Any is that they return
> a boolean value, indicating whether the extraction was successful or not.
> But having something like this in the streaming stuff would obviously make
> lines like "s >> foo >> bar >> blah;" impossible ;-) , making them more
> look like
> if ( (s >> foo) &&
>      (s >> bar) &&
>      (s >> blah) )
>   {
>     //extraction was fine
>   }
> else //error
> 
> ...which is in somehow what we want, or?  :-)

Yes, looks very good. But I get from this that only CORBA ">>" operators
return a bool, not ostream's ">>", right ?

[or is it the one written as ">>=" ? I still don't get that thing]

-- 
David FAURE
david.faure@insa-lyon.fr, faure@kde.org
http://www.insa-lyon.fr/People/AEDI/dfaure/index.html 
KDE, Making The Future of Computing Available Today

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

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