[Qt-interest] Const
Constantin Makshin
cmakshin at gmail.com
Tue Mar 16 00:17:21 CET 2010
"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
More information about the Qt-interest-old
mailing list