On Tue, Jun 06, 2006 at 04:32:27PM +0200, Leopold Toetsch wrote:
> Am Dienstag, 18. April 2006 18:19 schrieb Chip Salzenberg:
> > > On a side note, is there a way to get at the parent namespace if you have
> > > a namespace? I don't see anything in the PDD about it. (Seems you can
> > > only walk *down* the hierarchy, not up.)
> >
> > That's true.  Given aliasing there may not be just one parent, but I don't
> > suppose the distant chance of that will keep you from wanting this
> > feature...?
> 
> NameSpace.parent() is now implemented.
Cool.  I'm afraid it needs to be set_parent() and get_parent(), though, for
when someone wants to transplant a namespace into a (new?) location.

> I don't see, how we could get multiple parents, though.

If a namespace is imported, so that it has multiple names, that implies
there are two parent namespaces from which it can be reached.  But I'm not
interested in fully modeling that situation.  One parent is plenty.
-- 
Chip Salzenberg <[EMAIL PROTECTED]>

Reply via email to