swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error with lists


From: Marcus G. Daniels
Subject: Re: Error with lists
Date: 11 Jan 2001 20:34:01 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "DA" == David Aliaga <address@hidden> writes:

DA> because it is an Instance variable of an object and not a
DA> temporal variable. so it seems the "drop everything" rule is not
DA> true after all. 

Well, dropping an object will invalidate the object pointer, but I don't
think that's your point. 

You'll only see automatic dropping of ivar objects when you drop a zone
in which the object and its members were allocated. 

DA> WHY there is no a [list drop] at the end? (I ask this because in
DA> Heatbugs in the HeatSpace.m file method findExtremeType.. there is
DA> a [heatList drop] even after the [heatList deleteAll] that is
DA> supposed to drop all the elements of the list

There could have been; I was just demonstrating that deleteAll works on
empty lists.

There are three distinct operations:

-removeAll: Empty a list, keeping the List itself.

-deleteAll: Empty a list and destroy the members, keeping the List itself.

-drop:      Keep the members, dropping the List.  You might want to do this
            if you are doing different kinds of bookkeeping on the same 
            members

                  ==================================
   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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]