[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: what's wrong with this use of the index to clean a list?
From: |
Darren Schreiber |
Subject: |
Re: what's wrong with this use of the index to clean a list? |
Date: |
Wed, 27 Oct 1999 18:59:06 -0700 |
Isn't it also possible to get a nil when you drop an object, but haven't
removed it from a list? I think that this has been a source of problems
for me in the past.
Darren
>>>>>> "PJ" == Paul Johnson <address@hidden> writes:
>
>PJ> And I never do [offerList addLast:nil]. It must be the case, then,
>PJ> that I've got some other glitch in the model, so I add some
>PJ> nonexistand object to the list and it automatically slammed in a
>PJ> nil for me?
>
>Perhaps there is an addLast: that adds the result of another method,
>and that that method can fail, returning nil?
>
>If you add assertions at all the places that you call addLast: you
>should find the source of the nils.
>
>
> ==================================
> 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.
_____________________________________________
Darren Schreiber
Attorney at Law
Graduate Student
Political Science, UCLA
address@hidden
==================================
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.