[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
what's wrong with this use of the index to clean a list?
From: |
Paul Johnson |
Subject: |
what's wrong with this use of the index to clean a list? |
Date: |
Wed, 27 Oct 1999 15:53:59 -0500 |
I found a little problem that a list called "offerList" was not getting
cleaned out when I wanted it to. I don't understand why id does not, but
I keep getting the exit at the end.
newTestIndex=[offerList begin: [self getZone]];
while([newTestIndex next]!=nil)
{
id anobj;
anobj=[newTestIndex remove];
[offerRecycleList addLast: anobj];
}
//I thought the previous would have the effect of [offerList
removeAll]; but it does not seem to
//because I keep getting exits from the next thing...
if([offerList getCount] != 0) {printf("\n\n\n unclean offer list \n
\n"); raiseEvent ( WarningMessage,"didnt clean offers"); exit(0);}
--
Paul E. Johnson email: address@hidden
Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045 FAX: (785) 864-5700
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.