From: Nokan Emiro Date: 2012-12-03T07:43:54+09:00 Subject: Re: changing superclass --e89a8fb1fd7eff01b804cfe65c6a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I really appreciate that you want to save me from myself... :) But in Ruby it is possible to call private methods, you can change the values of constants, you can read and write instance variables form outside of an object. You can inherit from standard classes, what's more, you can reopen them and add/change/undef methods. These (and many more) seem to be very bad ideas too. I'm just curious why I can't change a classes superclass while I can do all the other magic. u. On Sun, Dec 2, 2012 at 11:20 PM, Bartosz Dziewo=C5=84ski wrote: > Use modules. > > Or just don't do that, as it seems like a very bad idea. > > -- Matma Rex > > --e89a8fb1fd7eff01b804cfe65c6a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi,

I really appreciate that you want to save me from my= self... :)

But in Ruby it is possible to call private methods, you c= an change
the values of constants, you can read and write instanc= e variables
form outside of an object. =C2=A0You can inherit from standard classes= ,
what's more, you can reopen them and add/change/undef metho= ds.
These (and many more) seem to be very bad ideas too. =C2=A0I&= #39;m just
curious why I can't change a classes superclass while I can do
all the other magic.

u.


On Sun, Dec 2, 2012 at 11:20 PM, Bartosz Dzie= wo=C5=84ski <matma.rex@gmail.com> wrote:
Use modules.

Or just don't do that, as it seems like a very bad idea.

-- Matma Rex


--e89a8fb1fd7eff01b804cfe65c6a--