passing POD by value with const qualifiers. Silly or not?
    Stefan Teleman 
    stefan.teleman at gmail.com
       
    Fri Feb 22 20:10:15 GMT 2008
    
    
  
On Fri, Feb 22, 2008 at 3:00 PM, André Wöbbeking <Woebbeking at kde.org> wrote:
> On Friday 22 February 2008, Stefan Teleman wrote:
>
> > On Fri, Feb 22, 2008 at 2:41 PM, André Wöbbeking <Woebbeking at kde.org>
>  wrote:
>  > >  As I wrote before, it isn't useful in the API.
>  >
>  > It is not useful at all, anywhere. What does it do ?
>
>  Well, in the implementation you can't change the parameter by mistake (I
>  mean the local copy here, not the callers one). I prefer const for
>  variables that don't change.
And if you change it (intentionally or not), what happens ? Anything ?
--Stefan
-- 
Stefan Teleman
KDE e.V.
stefan.teleman at gmail.com
    
    
More information about the kde-core-devel
mailing list