From: Ammar Ali Date: 2010-06-20T00:37:53+09:00 Subject: Re: General Ruby OOP question On Sat, Jun 19, 2010 at 4:56 PM, Paul A. wrote: > But is it ethics? I mean, is that lawful under the principles of > object-oriented programming. Maybe this is so much power, to pass self > inside person instance inside its home... 'cause it's almost as if there > was no class, no partitioning. There is nothing wrong from an OOP point of view with one object containing a reference to another object. Even in the real world, it makes sense that a person knows where their home is. In some languages, like C++, this can introduce some typing and API complications, but not in Ruby where methods are invoked by sending messages to the objects. The problems that you might have with this approach are related to design requirements. For example, what if one person can, optionally, have more than one home? Ammar