gcc in Mdk 8.0 - I am screwed...

Serge Lussier serge.lussier at videotron.ca
Thu Jun 28 15:26:53 UTC 2001


[..]
> > ...And I 've also discovered that I lack important C++ knowledges:
> > What is the difference(s) between
> >   (const?) int method(); AND
> >   (const?) int method() const;  ??
>                            ^^ This const indicates that the object
>                         the method is called on will not be modified
>                         (and thereby indicates that the method can be
>                         called via a const reference to the object).
>                         You can use the mutable modifier for member
>                         variables like reference counts and caches
>                         which may be modified in a const method.
>       ^^^ This const indicates the return value is const
>
> Cheers
>
> Rich.
>
oh! It's a bit complicated but I will experiment on it ;-)
The (const?) I put was because I was unsure it is requiered
for const methods to return constant values.

Thank you very much, Ritch, for your fast answer
Regards,
Bretzel




> >
> > I need to be enlighted...
> >
> > Thanks.
> >
> > Bretzel
> >
> > -
> > to unsubscribe from this list send an email to
kdevelop-devel-request at kdevelop.org with the following body:
> > unsubscribe »your-email-address«
>
> -
> to unsubscribe from this list send an email to
kdevelop-devel-request at kdevelop.org with the following body:
> unsubscribe »your-email-address«


-
to unsubscribe from this list send an email to kdevelop-devel-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop-devel mailing list