kdevplatform krazy
    Kris Wong 
    wongk at seapine.com
       
    Thu Jul 19 12:41:03 UTC 2007
    
    
  
> Well, then you can't do
> 
> foo = bar = 10;
> 
> Of course I have no idea if thats needed or wanted for IdentifiedFile,
> but it seems to be common practive to return a reference to this from
> operator=.
>
True, but that sort of thing is generally considered bad practice and I
believe is undefined according to the c++ standard.  You are right,
though, it is generally common practice to return a reference to the
item.
Kris Wong
    
    
More information about the KDevelop-devel
mailing list