swarm-support
[Top][All Lists]
Advanced

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

Dropping objects via List


From: Sven N. Thommesen
Subject: Dropping objects via List
Date: Thu, 10 Jul 1997 16:07:55 -0500

The documentation for List and Collection states that the message

[ myList removeAll ] 

will empty a list, but if you want to actually delete the objects being
pointed to by the list, you have to cycle through them and drop them
individually first.

Looking at the code, I found that there is an [undocumented ???] method

[ myList deleteAll ] 

which will not only empty the list of pointers but also drop (remove from
memory) all objects pointed to by the list.

Came in really handy in my case!

If someone thought -removeAll did what -deleteAll actually does, that would
certainly look like a big memory leak ...

Cheers,
Sven


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