Re: Older Sibling?

David Brownell wrote:
 
> Perhaps.  If you got used to using it, the linked list implementation
> would accumulate some bizarre costs since it'd need to recompute that
> property pretty often ... but that'd be more reasonable than asking for
> a specific "is this child before that one" primitive, as you'd seemed
> to be suggesting!

Furthermore, if the element is part of an entity, then no single index
will work, as the element node may be in the tree in multiple places.

-- 

Schlingt dreifach einen Kreis vom dies! || John Cowan <jcowan@reutershealth.com>
Schliesst euer Aug vor heiliger Schau,  || http://www.reutershealth.com
Denn er genoss vom Honig-Tau,           || http://www.ccil.org/~cowan
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)

Received on Monday, 28 February 2000 18:40:06 UTC