From: Austin Ziegler Date: 2002-07-07T00:00:30+09:00 Subject: Re: self_parent On Sat, 6 Jul 2002 23:53:20 +0900, David Alan Black wrote: > On Sat, 6 Jul 2002, Dossy wrote: >> I know two things: >> >> 1) Inheriting methods from your parent is good. >> >> 2) Needing to know what the class of your parent is a coding >> smell. Especially if you are using multiple inheritance. > Also (again, the terminological problem), the thing we're talking > about here isn't a traditional OO inheritance or parent/child > relationship, but rather the matter of an object knowing what the > value of "self" was at the time that it was instantiated. I've > found the thread interesting, though I'm still not convinced that > this notion has a place in good Ruby code design. Anyway, doesn't Ruby have a way to handle some of this now? In particular, through blocks as closures, as blocks remember their creation context? -austin -- Austin Ziegler, austin@halostatue.ca on 2002.07.06 at 10.59.02