From: David Alan Black Date: 2001-08-12T02:41:14+09:00 Subject: [ruby-talk:19540] Re: order and freedom in Ruby (was: Re: Re: the way class variables work) Hello - On Sun, 12 Aug 2001, MikkelFJ wrote: > > "David Alan Black" wrote in message > news:Pine.LNX.4.30.0108111014330.5875-100000@candle.superlink.net... > > > > But then we should perhaps go in the other direction: > .... > > Isn't that what happens if you manipulate a parent class (without > > having overridden the things you're manipulating)? > .... > I have never tried, I just assumed that once you had created your class, > changes to parent would not be transparent. But if this is true (as I trust > it is), then there is no difference between ringing doorbells at night using > methods instead of class variables. Then it is just the natural state of > things in Ruby. [Note: I'm not complaining about class variables any more... just discussing :-] The class variable model is different from the method model because any child class can redefine any method, which will (a) shield it from changes in the parent, and (b) not affect the parent or the siblings. (See also [ruby-talk:19522].) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav