[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: garbage collection thoughts... again?!
- From: Enrico Colombini <erix@...>
- Date: Thu, 29 May 2003 19:39:01 +0200
On Thursday 29 May 2003 19:07, Thatcher Ulrich wrote:
> * use a weak pointer when you don't "own" the other object. E.g. a
> child node would have a weak pointer to its parent. This requires
> some awareness on the part of the programmer of when to use a weak
> pointer, but at least is safe.
How do you apply this principle to a doubly-linked list, that could be kept in
existance by a single reference to an unpredictable item (e.g. a reference
either to the head or to the tail)?
By the way, how does Python fare with doubly-linked lists?
Enrico