[Qt-interest] Const
Lucas Pereira Caixeta
lpcnew at gmail.com
Tue Mar 16 00:23:01 CET 2010
Thanks Constantin you explain very well,
I ask on a portuguese forum too =)
Sorry, i´ll only send Qt questions from today.
See ya.
2010/3/15 Constantin Makshin <cmakshin at gmail.com>
> "const" at the beginning means the function returns a pointer to constant
> characters (i.e. read-only array of chars). "const" at the end means the
> function can't modify its class member variables.
>
> But this really is a basic C++ question that should be asked on an
> appropriate forum or mailing list.
>
> On Tue, 16 Mar 2010 02:02:22 +0300, Lucas Pereira Caixeta
> <lpcnew at gmail.com> wrote:
> > Ok... =/
> >
> > Answer only those who want...
> > Thanks.
> >
> > 2010/3/15 Donal O'Connor <donaloconnor at gmail.com>
> >
> >> This isn't a QT specific question and this is also something easily
> >> googleable!
> >>
> >> On Mon, Mar 15, 2010 at 10:53 PM, Lucas Pereira Caixeta
> >> <lpcnew at gmail.com>wrote:
> >>
> >>> Hello everyone! okay with everyone?
> >>> I have a doubt as to the methods "const".
> >>> I wonder why this "const" before and after.
> >>> For this, I got an example:
> >>>
> >>> const char * foo () const;
> >>>
> >>> Thanks a lot for the help.
> >>>
> >>> Att.
> >>> Lucas P. Caixeta
> >>>
>
> --
> Constantin Makshin
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100315/023e0a1f/attachment.html
More information about the Qt-interest-old
mailing list