[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: c++ question.
From: Thiago Macieira <thiago () kde ! org>
Date: 2010-09-03 5:46:19
Message-ID: 201009030746.28467.thiago () kde ! org
[Download RAW message or body]
On Thursday 2. September 2010 22.36.02 Tomaz Canabrava wrote:
> > I do not know what this methods do,
> > They use a [-1] array index, perhaps to do pointer arithmetic?, but
>
> no pointer aritimetic. it's just that the -1 is actually the biggest
> number you can find using an unsigned int. so, it's 0xFFFFFFFFFFFFFFFFFFF
> ( or something near =p )
Actually, it's both.
-1 is the highest possible unsigned number, but in this case it's used as a
negative index.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic