[prev in list] [next in list] [prev in thread] [next in thread]
List: bro
Subject: Re: about BaseList
From: Robin Sommer <robin () net ! uni-sb ! de>
Date: 2002-09-13 11:11:58
Message-ID: 20020913111158.GH1469 () net ! uni-sb ! de
[Download RAW message or body]
On Fri, Sep 13, 2002 at 16:06 +0800, Wang Shaofu wrote:
> entry[n] = 0; // for debugging ???Is this to make the nth one
> null?
No. The n-th entry is removed by moving all following entries one
position to the front, i.e. the n-th entry is overwritten by the
n+1-th.
The line above clears the array position that has been the end of
the list before we deleted the n-th element. This is not necessary
but helps debugging.
Robin
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic