From: David Alan Black Date: 2002-07-05T10:03:19+09:00 Subject: Re: self_parent Hello -- On Fri, 5 Jul 2002, Sean Russell wrote: > David Alan Black wrote: > > > REXML is specifically modeling the parent/child relationships of XML > > in that class, though (I think). That's different from a > > language-level (I mean Ruby, not XML) description of one object as the > > "parent" of another because the second object is created by a method > > of the first object. > > Yes. A REXML parent/child relationship has nothing to do with object > inheritance, but rather describes a contains/contained by relationship. Moreover, the notion of "self" at the time of object creation as the parent of the created object is actually also not related to object inheritance -- which I think is part of what's potentially confusing about it, though even with renaming the problems with coupling and dependencies would remain. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav