From: Jeff Wood Date: 2005-08-29T11:31:00+09:00 Subject: Re: Method behaves differently when called using #send --------------010802060801010707000600 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Douglas Livingstone wrote: >On 8/29/05, Jeff Wood wrote: > > >>It breaks encapsulation for anything to call a private method other than >>the object itself... So, I guess it needs to have scope... >> >> >> > >We have open classes remember :) > >It isn't so much a problem that send/send! can break encapsulation, >rather it is "when you want to break encapsulation, how do you want to >do it?" > >Douglas > > > > Yes but adding/taking away from an object doesn't change it's interaction with the world... The engine of a car can be added to and taken away from ... it's an instance ... but, that doesn't give the gas pedal control over the radiator... Encapsulation should be enforced... My vote is solidly against adding anything that allows something outside of an object to have access to that objects internal bits... bad juju. j. --------------010802060801010707000600--